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
0c1e9111
Kaydet (Commit)
0c1e9111
authored
Eki 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#704104 Unchecked return value
Change-Id: I4a2c49befe4baea10e36e0d612371fe8c91db401
üst
98a19ed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
text_gfx.cxx
vcl/generic/print/text_gfx.cxx
+7
-5
printergfx.hxx
vcl/inc/generic/printergfx.hxx
+1
-1
No files found.
vcl/generic/print/text_gfx.cxx
Dosyayı görüntüle @
0c1e9111
...
...
@@ -425,13 +425,18 @@ PrinterGfx::DrawText (
);
}
void
PrinterGfx
::
drawVerticalizedText
(
bool
PrinterGfx
::
drawVerticalizedText
(
const
Point
&
rPoint
,
const
sal_Unicode
*
pStr
,
sal_Int16
nLen
,
const
sal_Int32
*
pDeltaArray
)
{
PrintFontManager
&
rMgr
=
PrintFontManager
::
get
();
PrintFontInfo
aInfo
;
if
(
!
rMgr
.
getFontInfo
(
mnFontID
,
aInfo
))
return
false
;
sal_Int32
*
pDelta
=
(
sal_Int32
*
)
alloca
(
nLen
*
sizeof
(
sal_Int32
)
);
int
nTextScale
=
maVirtualStatus
.
mnTextWidth
?
maVirtualStatus
.
mnTextWidth
:
maVirtualStatus
.
mnTextHeight
;
...
...
@@ -441,10 +446,6 @@ void PrinterGfx::drawVerticalizedText(
double
fSin
=
sin
(
-
2.0
*
M_PI
*
nNormalAngle
/
3600
);
double
fCos
=
cos
(
-
2.0
*
M_PI
*
nNormalAngle
/
3600
);
PrintFontManager
&
rMgr
=
PrintFontManager
::
get
();
PrintFontInfo
aInfo
;
rMgr
.
getFontInfo
(
mnFontID
,
aInfo
);
bool
*
pGsubFlags
=
(
bool
*
)
alloca
(
nLen
*
sizeof
(
bool
)
);
rMgr
.
hasVerticalSubstitutions
(
mnFontID
,
pStr
,
nLen
,
pGsubFlags
);
...
...
@@ -518,6 +519,7 @@ void PrinterGfx::drawVerticalizedText(
nLastPos
=
i
;
}
mnTextAngle
=
nNormalAngle
;
return
true
;
}
void
...
...
vcl/inc/generic/printergfx.hxx
Dosyayı görüntüle @
0c1e9111
...
...
@@ -304,7 +304,7 @@ public:
void
writeResources
(
osl
::
File
*
pFile
,
std
::
list
<
OString
>&
rSuppliedFonts
);
PrintFontManager
&
GetFontMgr
()
{
return
mrFontMgr
;
}
void
drawVerticalizedText
(
const
Point
&
rPoint
,
bool
drawVerticalizedText
(
const
Point
&
rPoint
,
const
sal_Unicode
*
pStr
,
sal_Int16
nLen
,
const
sal_Int32
*
pDeltaArray
);
...
...
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