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
5a7b392d
Kaydet (Commit)
5a7b392d
authored
Agu 22, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uInt16: constify, simplify, avoid temporaries
Change-Id: I4eaf9910eec073fad5dac6722661383253912c10
üst
26ec2061
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
swfont.cxx
sw/source/core/txtnode/swfont.cxx
+7
-9
No files found.
sw/source/core/txtnode/swfont.cxx
Dosyayı görüntüle @
5a7b392d
...
...
@@ -473,7 +473,7 @@ sal_uInt16 SwSubFont::CalcEscAscent( const sal_uInt16 nOldAscent ) const
const
long
nAscent
=
nOldAscent
+
(
(
long
)
nOrgHeight
*
GetEscapement
()
)
/
100L
;
if
(
nAscent
>
0
)
return
(
std
::
max
(
sal_uInt16
(
nAscent
),
nOrgAscent
)
);
return
std
::
max
<
sal_uInt16
>
(
nAscent
,
nOrgAscent
);
}
return
nOrgAscent
;
}
...
...
@@ -1025,8 +1025,9 @@ sal_uInt16 SwSubFont::CalcEscHeight( const sal_uInt16 nOldHeight,
{
long
nDescent
=
nOldHeight
-
nOldAscent
-
(
(
long
)
nOrgHeight
*
GetEscapement
()
)
/
100L
;
const
sal_uInt16
nDesc
=
(
nDescent
>
0
)
?
std
::
max
(
sal_uInt16
(
nDescent
),
sal_uInt16
(
nOrgHeight
-
nOrgAscent
)
)
:
nOrgHeight
-
nOrgAscent
;
const
sal_uInt16
nDesc
=
nDescent
>
0
?
std
::
max
<
sal_uInt16
>
(
nDescent
,
nOrgHeight
-
nOrgAscent
)
:
nOrgHeight
-
nOrgAscent
;
return
(
nDesc
+
CalcEscAscent
(
nOldAscent
)
);
}
return
nOrgHeight
;
...
...
@@ -1043,12 +1044,9 @@ short SwSubFont::_CheckKerning( )
sal_uInt16
SwSubFont
::
GetAscent
(
SwViewShell
*
pSh
,
const
OutputDevice
&
rOut
)
{
sal_uInt16
nAscent
;
SwFntAccess
aFntAccess
(
pMagic
,
nFntIndex
,
this
,
pSh
);
nAscent
=
aFntAccess
.
Get
()
->
GetFontAscent
(
pSh
,
rOut
);
if
(
GetEscapement
()
)
nAscent
=
CalcEscAscent
(
nAscent
);
return
nAscent
;
const
sal_uInt16
nAscent
=
aFntAccess
.
Get
()
->
GetFontAscent
(
pSh
,
rOut
);
return
GetEscapement
()
?
CalcEscAscent
(
nAscent
)
:
nAscent
;
}
sal_uInt16
SwSubFont
::
GetHeight
(
SwViewShell
*
pSh
,
const
OutputDevice
&
rOut
)
...
...
@@ -1414,7 +1412,7 @@ void SwSubFont::CalcEsc( SwDrawTextInfo& rInf, Point& rPos )
{
long
nOfst
;
sal_uInt16
nDir
=
UnMapDirection
(
const
sal_uInt16
nDir
=
UnMapDirection
(
GetOrientation
(),
rInf
.
GetFrm
()
&&
rInf
.
GetFrm
()
->
IsVertical
()
);
switch
(
GetEscapement
()
)
...
...
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