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
809a4ef4
Kaydet (Commit)
809a4ef4
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::DrawTextLine
Change-Id: If2c059b1284257c73e64f30ffe845ee4d1ccc84d
üst
fa29fab1
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 @
809a4ef4
...
@@ -1058,23 +1058,21 @@ Size SmViewShell::GetTextSize(OutputDevice& rDevice, const OUString& rText, long
...
@@ -1058,23 +1058,21 @@ Size SmViewShell::GetTextSize(OutputDevice& rDevice, const OUString& rText, long
void
SmViewShell
::
DrawTextLine
(
OutputDevice
&
rDevice
,
const
Point
&
rPosition
,
const
OUString
&
rLine
)
void
SmViewShell
::
DrawTextLine
(
OutputDevice
&
rDevice
,
const
Point
&
rPosition
,
const
OUString
&
rLine
)
{
{
Point
aPoint
(
rPosition
);
Point
aPoint
(
rPosition
);
const
long
nTabPos
=
rLine
.
isEmpty
()
?
0
:
rDevice
.
approximate_char_width
()
*
8
;
sal_uInt16
nTabs
=
comphelper
::
string
::
getTokenCount
(
rLine
,
'\t'
);
long
nTabPos
=
0
;
if
(
nTabs
>
0
)
nTabPos
=
rDevice
.
approximate_char_width
()
*
8
;
if
(
nTabPos
)
if
(
nTabPos
)
{
{
for
(
sal_uInt16
i
=
0
;
i
<
nTabs
;
++
i
)
sal_Int32
nPos
=
0
;
do
{
{
if
(
i
>
0
)
if
(
nPos
>
0
)
aPoint
.
X
()
=
((
aPoint
.
X
()
/
nTabPos
)
+
1
)
*
nTabPos
;
aPoint
.
X
()
=
((
aPoint
.
X
()
/
nTabPos
)
+
1
)
*
nTabPos
;
OUString
aText
=
rLine
.
getToken
(
i
,
'\t'
);
OUString
aText
=
rLine
.
getToken
(
0
,
'\t'
,
nPos
);
rDevice
.
DrawText
(
aPoint
,
aText
);
rDevice
.
DrawText
(
aPoint
,
aText
);
aPoint
.
X
()
+=
rDevice
.
GetTextWidth
(
aText
);
aPoint
.
X
()
+=
rDevice
.
GetTextWidth
(
aText
);
}
}
while
(
nPos
>=
0
);
}
}
else
else
rDevice
.
DrawText
(
aPoint
,
rLine
);
rDevice
.
DrawText
(
aPoint
,
rLine
);
...
...
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