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
6480d68a
Kaydet (Commit)
6480d68a
authored
Eki 01, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735748 Unchecked dynamic_cast
Change-Id: Id15888f32996dd2ce05bed6942ebebdb8223a85b
üst
3b4fcee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pdfexport.cxx
filter/source/pdf/pdfexport.cxx
+4
-4
No files found.
filter/source/pdf/pdfexport.cxx
Dosyayı görüntüle @
6480d68a
...
@@ -184,10 +184,10 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
...
@@ -184,10 +184,10 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
if
(
pOut
)
if
(
pOut
)
{
{
vcl
::
PDFExtOutDevData
*
pPDFExtOutDevData
=
dynamic_cast
<
vcl
::
PDFExtOutDevData
*
>
(
pOut
->
GetExtOutDevData
()
);
if
(
nPageCount
)
if
(
nPageCount
)
{
{
pPDFExtOutDevData
->
SetIsExportNotesPages
(
bExportNotesPages
);
vcl
::
PDFExtOutDevData
&
rPDFExtOutDevData
=
dynamic_cast
<
vcl
::
PDFExtOutDevData
&>
(
*
pOut
->
GetExtOutDevData
());
rPDFExtOutDevData
.
SetIsExportNotesPages
(
bExportNotesPages
);
sal_Int32
nCurrentPage
(
0
);
sal_Int32
nCurrentPage
(
0
);
StringRangeEnumerator
::
Iterator
aIter
=
rRangeEnum
.
begin
();
StringRangeEnumerator
::
Iterator
aIter
=
rRangeEnum
.
begin
();
...
@@ -203,7 +203,7 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
...
@@ -203,7 +203,7 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
aRenderer
[
nProperty
].
Value
>>=
aPageSize
;
aRenderer
[
nProperty
].
Value
>>=
aPageSize
;
}
}
pPDFExtOutDevData
->
SetCurrentPageNumber
(
nCurrentPage
);
rPDFExtOutDevData
.
SetCurrentPageNumber
(
nCurrentPage
);
GDIMetaFile
aMtf
;
GDIMetaFile
aMtf
;
const
MapMode
aMapMode
(
MAP_100TH_MM
);
const
MapMode
aMapMode
(
MAP_100TH_MM
);
...
@@ -231,7 +231,7 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
...
@@ -231,7 +231,7 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
if
(
aMtf
.
GetActionSize
()
&&
if
(
aMtf
.
GetActionSize
()
&&
(
!
mbSkipEmptyPages
||
aPageSize
.
Width
||
aPageSize
.
Height
)
)
(
!
mbSkipEmptyPages
||
aPageSize
.
Width
||
aPageSize
.
Height
)
)
bRet
=
ImplExportPage
(
rPDFWriter
,
*
pPDFExtOutDevData
,
aMtf
)
||
bRet
;
bRet
=
ImplExportPage
(
rPDFWriter
,
rPDFExtOutDevData
,
aMtf
)
||
bRet
;
pOut
->
Pop
();
pOut
->
Pop
();
...
...
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