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
b7c30884
Kaydet (Commit)
b7c30884
authored
Ock 21, 2014
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
It is just an innocent hyphen not a hyphenator
Change-Id: I7454d90adfd507aae4c7efd1d4075454f03cddd8
üst
775da618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
outdev3.cxx
vcl/source/gdi/outdev3.cxx
+11
-11
No files found.
vcl/source/gdi/outdev3.cxx
Dosyayı görüntüle @
b7c30884
...
...
@@ -6016,11 +6016,11 @@ sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, long nTextWidth,
}
sal_Int32
OutputDevice
::
GetTextBreak
(
const
OUString
&
rStr
,
long
nTextWidth
,
sal_Unicode
nHyphen
atorChar
,
sal_Int32
&
rHyphenator
Pos
,
sal_Unicode
nHyphen
Char
,
sal_Int32
&
rHyphen
Pos
,
sal_Int32
nIndex
,
sal_Int32
nLen
,
long
nCharExtra
)
const
{
rHyphen
ator
Pos
=
-
1
;
rHyphenPos
=
-
1
;
SalLayout
*
pSalLayout
=
ImplLayout
(
rStr
,
nIndex
,
nLen
);
sal_Int32
nRetVal
=
-
1
;
...
...
@@ -6046,24 +6046,24 @@ sal_Int32 OutputDevice::GetTextBreak( const OUString& rStr, long nTextWidth,
nRetVal
=
pSalLayout
->
GetTextBreak
(
nTextPixelWidth
,
nExtraPixelWidth
,
nSubPixelFactor
);
// calculate hyphenated break position
OUString
aHyphen
atorStr
(
nHyphenator
Char
);
OUString
aHyphen
Str
(
nHyphen
Char
);
sal_Int32
nTempLen
=
1
;
SalLayout
*
pHyphen
atorLayout
=
ImplLayout
(
aHyphenator
Str
,
0
,
nTempLen
);
if
(
pHyphen
ator
Layout
)
SalLayout
*
pHyphen
Layout
=
ImplLayout
(
aHyphen
Str
,
0
,
nTempLen
);
if
(
pHyphenLayout
)
{
// calculate subpixel width of hyphenation character
long
nHyphen
atorPixelWidth
=
pHyphenator
Layout
->
GetTextWidth
()
*
nSubPixelFactor
;
pHyphen
ator
Layout
->
Release
();
long
nHyphen
PixelWidth
=
pHyphen
Layout
->
GetTextWidth
()
*
nSubPixelFactor
;
pHyphenLayout
->
Release
();
// calculate hyphenated break position
nTextPixelWidth
-=
nHyphen
ator
PixelWidth
;
nTextPixelWidth
-=
nHyphenPixelWidth
;
if
(
nExtraPixelWidth
>
0
)
nTextPixelWidth
-=
nExtraPixelWidth
;
rHyphen
ator
Pos
=
pSalLayout
->
GetTextBreak
(
nTextPixelWidth
,
nExtraPixelWidth
,
nSubPixelFactor
);
rHyphenPos
=
pSalLayout
->
GetTextBreak
(
nTextPixelWidth
,
nExtraPixelWidth
,
nSubPixelFactor
);
if
(
rHyphen
ator
Pos
>
nRetVal
)
rHyphen
ator
Pos
=
nRetVal
;
if
(
rHyphenPos
>
nRetVal
)
rHyphenPos
=
nRetVal
;
}
pSalLayout
->
Release
();
...
...
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