Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
90059da9
Kaydet (Commit)
90059da9
authored
Eyl 13, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid getTokenCount in SmViewShell::SetZoomFactor
Change-Id: Idb874a60868595ccc648da86c8bd32c28b92547b
üst
13ea7ab9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
view.cxx
starmath/source/view.cxx
+6
-8
No files found.
starmath/source/view.cxx
Dosyayı görüntüle @
90059da9
...
...
@@ -976,23 +976,21 @@ void SmViewShell::SetZoomFactor( const Fraction &rX, const Fraction &rY )
Size
SmViewShell
::
GetTextLineSize
(
OutputDevice
&
rDevice
,
const
OUString
&
rLine
)
{
Size
aSize
(
rDevice
.
GetTextWidth
(
rLine
),
rDevice
.
GetTextHeight
());
sal_uInt16
nTabs
=
comphelper
::
string
::
getTokenCount
(
rLine
,
'\t'
);
long
nTabPos
=
0
;
if
(
nTabs
>
0
)
nTabPos
=
rDevice
.
approximate_char_width
()
*
8
;
const
long
nTabPos
=
rLine
.
isEmpty
()
?
0
:
rDevice
.
approximate_char_width
()
*
8
;
if
(
nTabPos
)
{
aSize
.
Width
()
=
0
;
for
(
sal_uInt16
i
=
0
;
i
<
nTabs
;
i
++
)
sal_Int32
nPos
=
0
;
do
{
if
(
i
>
0
)
if
(
nPos
>
0
)
aSize
.
Width
()
=
((
aSize
.
Width
()
/
nTabPos
)
+
1
)
*
nTabPos
;
OUString
aText
=
rLine
.
getToken
(
i
,
'\t'
);
const
OUString
aText
=
rLine
.
getToken
(
0
,
'\t'
,
nPos
);
aSize
.
Width
()
+=
rDevice
.
GetTextWidth
(
aText
);
}
while
(
nPos
>=
0
);
}
return
aSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment