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
22f719aa
Kaydet (Commit)
22f719aa
authored
May 01, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#738861 Uninitialized pointer field
Change-Id: I0c39ea58fd1f85471531490401a7b7e8ca7c2a17
üst
09ebcc26
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
12 deletions
+25
-12
wmf.hxx
include/vcl/wmf.hxx
+1
-1
graphicfilter.cxx
vcl/source/filter/graphicfilter.cxx
+1
-1
emfwr.cxx
vcl/source/filter/wmf/emfwr.cxx
+2
-3
emfwr.hxx
vcl/source/filter/wmf/emfwr.hxx
+19
-4
wmf.cxx
vcl/source/filter/wmf/wmf.cxx
+2
-3
No files found.
include/vcl/wmf.hxx
Dosyayı görüntüle @
22f719aa
...
...
@@ -61,7 +61,7 @@ VCL_DLLPUBLIC bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF, Fil
VCL_DLLPUBLIC
bool
ConvertGDIMetaFileToWMF
(
const
GDIMetaFile
&
rMTF
,
SvStream
&
rTargetStream
,
FilterConfigItem
*
pConfigItem
=
NULL
,
bool
bPlaceable
=
true
);
bool
ConvertGDIMetaFileToEMF
(
const
GDIMetaFile
&
rMTF
,
SvStream
&
rTargetStream
,
FilterConfigItem
*
pConfigItem
=
NULL
);
bool
ConvertGDIMetaFileToEMF
(
const
GDIMetaFile
&
rMTF
,
SvStream
&
rTargetStream
);
VCL_DLLPUBLIC
bool
WriteWindowMetafileBits
(
SvStream
&
rStream
,
const
GDIMetaFile
&
rMTF
);
...
...
vcl/source/filter/graphicfilter.cxx
Dosyayı görüntüle @
22f719aa
...
...
@@ -1968,7 +1968,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const OUString
else
if
(
aFilterName
.
equalsIgnoreAsciiCase
(
EXP_EMF
)
)
{
// #i119735# just use GetGDIMetaFile, it will create a bufferd version of contained bitmap now automatically
if
(
!
ConvertGDIMetaFileToEMF
(
aGraphic
.
GetGDIMetaFile
(),
rOStm
,
&
aConfigItem
)
)
if
(
!
ConvertGDIMetaFileToEMF
(
aGraphic
.
GetGDIMetaFile
(),
rOStm
)
)
nStatus
=
GRFILTER_FORMATERROR
;
if
(
rOStm
.
GetError
()
)
...
...
vcl/source/filter/wmf/emfwr.cxx
Dosyayı görüntüle @
22f719aa
...
...
@@ -284,7 +284,7 @@ void EMFWriter::ImplWritePlusFillPolygonRecord( const Polygon& rPoly, const sal_
ImplEndCommentRecord
();
}
bool
EMFWriter
::
WriteEMF
(
const
GDIMetaFile
&
rMtf
,
FilterConfigItem
*
pFilterConfigItem
)
bool
EMFWriter
::
WriteEMF
(
const
GDIMetaFile
&
rMtf
)
{
const
sal_uLong
nHeaderPos
=
m_rStm
.
Tell
();
...
...
@@ -292,10 +292,9 @@ bool EMFWriter::WriteEMF( const GDIMetaFile& rMtf, FilterConfigItem* pFilterConf
maVDev
.
SetMapMode
(
rMtf
.
GetPrefMapMode
()
);
// don't work with pixel as destination map mode -> higher resolution preferrable
maDestMapMode
.
SetMapUnit
(
MAP_100TH_MM
);
mpFilterConfigItem
=
pFilterConfigItem
;
mpHandlesUsed
=
new
bool
[
MAXHANDLES
];
memset
(
mpHandlesUsed
,
0
,
MAXHANDLES
*
sizeof
(
bool
)
);
mnHandleCount
=
mn
LastPercent
=
mn
RecordCount
=
mnRecordPos
=
mnRecordPlusPos
=
0
;
mnHandleCount
=
mnRecordCount
=
mnRecordPos
=
mnRecordPlusPos
=
0
;
mbRecordOpen
=
mbRecordPlusOpen
=
false
;
mbLineChanged
=
mbFillChanged
=
mbTextChanged
=
false
;
mnLineHandle
=
mnFillHandle
=
mnTextHandle
=
HANDLE_INVALID
;
...
...
vcl/source/filter/wmf/emfwr.hxx
Dosyayı görüntüle @
22f719aa
...
...
@@ -35,11 +35,9 @@ private:
VirtualDevice
maVDev
;
MapMode
maDestMapMode
;
FilterConfigItem
*
mpFilterConfigItem
;
SvStream
&
m_rStm
;
bool
*
mpHandlesUsed
;
sal_uLong
mnHandleCount
;
sal_uLong
mnLastPercent
;
sal_uLong
mnRecordCount
;
sal_uLong
mnRecordPos
;
sal_uLong
mnRecordPlusPos
;
...
...
@@ -91,9 +89,26 @@ private:
public
:
EMFWriter
(
SvStream
&
rStream
)
:
m_rStm
(
rStream
)
{}
EMFWriter
(
SvStream
&
rStream
)
:
m_rStm
(
rStream
)
,
mpHandlesUsed
(
NULL
)
,
mnHandleCount
(
0
)
,
mnRecordCount
(
0
)
,
mnRecordPos
(
0
)
,
mnRecordPlusPos
(
0
)
,
mbRecordOpen
(
false
)
,
mbRecordPlusOpen
(
false
)
,
mbLineChanged
(
false
)
,
mnLineHandle
(
0
)
,
mbFillChanged
(
false
)
,
mnFillHandle
(
0
)
,
mbTextChanged
(
false
)
,
mnTextHandle
(
0
)
,
mnHorTextAlign
(
0
)
{
}
bool
WriteEMF
(
const
GDIMetaFile
&
rMtf
,
FilterConfigItem
*
pConfigItem
=
NULL
);
bool
WriteEMF
(
const
GDIMetaFile
&
rMtf
);
};
#endif // INCLUDED_VCL_SOURCE_FILTER_WMF_EMFWR_HXX
...
...
vcl/source/filter/wmf/wmf.cxx
Dosyayı görüntüle @
22f719aa
...
...
@@ -102,8 +102,7 @@ bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream
return
aWMFWriter
.
WriteWMF
(
aGdiMetaFile
,
rTargetStream
,
pConfigItem
,
bPlaceable
);
}
bool
ConvertGDIMetaFileToEMF
(
const
GDIMetaFile
&
rMTF
,
SvStream
&
rTargetStream
,
FilterConfigItem
*
pConfigItem
)
bool
ConvertGDIMetaFileToEMF
(
const
GDIMetaFile
&
rMTF
,
SvStream
&
rTargetStream
)
{
EMFWriter
aEMFWriter
(
rTargetStream
);
GDIMetaFile
aGdiMetaFile
(
rMTF
);
...
...
@@ -116,7 +115,7 @@ bool ConvertGDIMetaFileToEMF( const GDIMetaFile & rMTF, SvStream & rTargetStream
clipMetafileContentAgainstOwnRegions
(
aGdiMetaFile
);
}
return
aEMFWriter
.
WriteEMF
(
aGdiMetaFile
,
pConfigItem
);
return
aEMFWriter
.
WriteEMF
(
aGdiMetaFile
);
}
bool
WriteWindowMetafileBits
(
SvStream
&
rStream
,
const
GDIMetaFile
&
rMTF
)
...
...
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