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
581ffdd2
Kaydet (Commit)
581ffdd2
authored
Şub 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1187675 Dereference null return value
Change-Id: I313772d7382c303990f7333990e340803678be79
üst
3a1671b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
fontmanager.cxx
vcl/generic/fontmanager/fontmanager.cxx
+4
-10
No files found.
vcl/generic/fontmanager/fontmanager.cxx
Dosyayı görüntüle @
581ffdd2
...
...
@@ -1719,12 +1719,10 @@ const OUString& PrintFontManager::getPSName( fontID nFontID ) const
return
m_pAtoms
->
getString
(
ATOM_PSNAME
,
pFont
?
pFont
->
m_nPSName
:
INVALID_ATOM
);
}
int
PrintFontManager
::
getFontAscend
(
fontID
nFontID
)
const
{
PrintFont
*
pFont
=
getFont
(
nFontID
);
if
(
pFont
->
m_nAscend
==
0
&&
pFont
->
m_nDescend
==
0
)
if
(
pFont
&&
pFont
->
m_nAscend
==
0
&&
pFont
->
m_nDescend
==
0
)
{
// might be a truetype font not yet analyzed
if
(
pFont
->
m_eType
==
fonttype
::
TrueType
)
...
...
@@ -1732,15 +1730,13 @@ int PrintFontManager::getFontAscend( fontID nFontID ) const
else
if
(
pFont
->
m_eType
==
fonttype
::
Type1
)
pFont
->
readAfmMetrics
(
m_pAtoms
,
false
,
true
);
}
return
pFont
->
m_nAscend
;
return
pFont
?
pFont
->
m_nAscend
:
0
;
}
int
PrintFontManager
::
getFontDescend
(
fontID
nFontID
)
const
{
PrintFont
*
pFont
=
getFont
(
nFontID
);
if
(
pFont
->
m_nAscend
==
0
&&
pFont
->
m_nDescend
==
0
)
if
(
pFont
&&
pFont
->
m_nAscend
==
0
&&
pFont
->
m_nDescend
==
0
)
{
// might be a truetype font not yet analyzed
if
(
pFont
->
m_eType
==
fonttype
::
TrueType
)
...
...
@@ -1748,11 +1744,9 @@ int PrintFontManager::getFontDescend( fontID nFontID ) const
else
if
(
pFont
->
m_eType
==
fonttype
::
Type1
)
pFont
->
readAfmMetrics
(
m_pAtoms
,
false
,
true
);
}
return
pFont
->
m_nDescend
;
return
pFont
?
pFont
->
m_nDescend
:
0
;
}
void
PrintFontManager
::
hasVerticalSubstitutions
(
fontID
nFontID
,
const
sal_Unicode
*
pCharacters
,
int
nCharacters
,
bool
*
pHasSubst
)
const
{
...
...
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