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
800f387a
Kaydet (Commit)
800f387a
authored
Eki 22, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bah, Len->!isEmpty
Change-Id: Icc09ef129d39575e02de4eaf1e371e3de8758eb3
üst
fd2b292f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+3
-3
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
800f387a
...
@@ -212,9 +212,9 @@ ImplDevFontAttributes ImplFontAttrCache::GetFontAttr( const OUString& rFontFileN
...
@@ -212,9 +212,9 @@ ImplDevFontAttributes ImplFontAttrCache::GetFontAttr( const OUString& rFontFileN
void
ImplFontAttrCache
::
AddFontAttr
(
const
OUString
&
rFontFileName
,
const
ImplDevFontAttributes
&
rDFA
)
void
ImplFontAttrCache
::
AddFontAttr
(
const
OUString
&
rFontFileName
,
const
ImplDevFontAttributes
&
rDFA
)
{
{
SAL_WARN_IF
(
!
rFontFileName
.
Len
()
||
rDFA
.
GetFamilyName
().
isEmpty
(),
SAL_WARN_IF
(
rFontFileName
.
isEmpty
()
||
rDFA
.
GetFamilyName
().
isEmpty
(),
"vcl.gdi"
,
"ImplFontNameCache::AddFontName - invalid data!"
);
"vcl.gdi"
,
"ImplFontNameCache::AddFontName - invalid data!"
);
if
(
rFontFileName
.
Len
()
&&
!
rDFA
.
GetFamilyName
().
isEmpty
()
)
if
(
!
rFontFileName
.
isEmpty
()
&&
!
rDFA
.
GetFamilyName
().
isEmpty
()
)
{
{
aFontAttributes
.
insert
(
FontAttrMap
::
value_type
(
OptimizeURL
(
rFontFileName
),
rDFA
)
);
aFontAttributes
.
insert
(
FontAttrMap
::
value_type
(
OptimizeURL
(
rFontFileName
),
rDFA
)
);
bModified
=
TRUE
;
bModified
=
TRUE
;
...
@@ -1859,7 +1859,7 @@ int CALLBACK SalEnumFontsProcExW( const ENUMLOGFONTEXW* pLogFont,
...
@@ -1859,7 +1859,7 @@ int CALLBACK SalEnumFontsProcExW( const ENUMLOGFONTEXW* pLogFont,
pInfo
->
mbCourier
=
FALSE
;
pInfo
->
mbCourier
=
FALSE
;
OUString
aName
=
OUString
(
reinterpret_cast
<
const
sal_Unicode
*>
(
pLogFont
->
elfLogFont
.
lfFaceName
));
OUString
aName
=
OUString
(
reinterpret_cast
<
const
sal_Unicode
*>
(
pLogFont
->
elfLogFont
.
lfFaceName
));
pInfo
->
mpName
=
&
aName
;
pInfo
->
mpName
=
&
aName
;
memcpy
(
pInfo
->
mpLogFontW
->
lfFaceName
,
pLogFont
->
elfLogFont
.
lfFaceName
,
(
aName
.
Len
()
+
1
)
*
sizeof
(
wchar_t
)
);
memcpy
(
pInfo
->
mpLogFontW
->
lfFaceName
,
pLogFont
->
elfLogFont
.
lfFaceName
,
(
aName
.
getLength
()
+
1
)
*
sizeof
(
wchar_t
)
);
pInfo
->
mpLogFontW
->
lfCharSet
=
pLogFont
->
elfLogFont
.
lfCharSet
;
pInfo
->
mpLogFontW
->
lfCharSet
=
pLogFont
->
elfLogFont
.
lfCharSet
;
EnumFontFamiliesExW
(
pInfo
->
mhDC
,
pInfo
->
mpLogFontW
,
(
FONTENUMPROCW
)
SalEnumFontsProcExW
,
EnumFontFamiliesExW
(
pInfo
->
mhDC
,
pInfo
->
mpLogFontW
,
(
FONTENUMPROCW
)
SalEnumFontsProcExW
,
(
LPARAM
)(
void
*
)
pInfo
,
0
);
(
LPARAM
)(
void
*
)
pInfo
,
0
);
...
...
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