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
c8a46ee5
Kaydet (Commit)
c8a46ee5
authored
Agu 29, 2015
tarafından
Marco Cecchetti
Kaydeden (comit)
Michael Meeks
Eyl 01, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
truncate checksum to 32-bit when it slips inside a file stream
Change-Id: I2cedf8acf73f71529f4090ff2f9fce7ab7663e68
üst
31ae4863
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
svgexport.cxx
filter/source/svg/svgexport.cxx
+1
-1
svgwriter.cxx
filter/source/svg/svgwriter.cxx
+6
-6
svgwriter.hxx
filter/source/svg/svgwriter.hxx
+1
-1
No files found.
filter/source/svg/svgexport.cxx
Dosyayı görüntüle @
c8a46ee5
...
...
@@ -1302,7 +1302,7 @@ bool SVGFilter::implExportTextEmbeddedBitmaps()
MetaAction
*
pAction
=
aMtf
.
GetAction
(
0
);
if
(
pAction
)
{
BitmapChecksum
nId
=
GetBitmapChecksum
(
pAction
);
sal_uInt32
nId
=
(
sal_uInt32
)(
GetBitmapChecksum
(
pAction
)
);
sId
=
"bitmap("
+
OUString
::
number
(
nId
)
+
")"
;
mpSVGExport
->
AddAttribute
(
XML_NAMESPACE_NONE
,
"id"
,
sId
);
...
...
filter/source/svg/svgwriter.cxx
Dosyayı görüntüle @
c8a46ee5
...
...
@@ -1359,7 +1359,7 @@ void SVGTextWriter::writeBitmapPlaceholder( const MetaBitmapActionType* pAction
}
// bitmap placeholder element
BitmapChecksum
nId
=
SVGActionWriter
::
GetChecksum
(
pAction
);
sal_uInt32
nId
=
SVGActionWriter
::
GetChecksum
(
pAction
);
OUString
sId
=
"bitmap-placeholder("
+
msShapeId
+
"."
+
OUString
::
number
(
nId
)
+
")"
;
...
...
@@ -1381,7 +1381,7 @@ void SVGTextWriter::implWriteEmbeddedBitmaps()
const
GDIMetaFile
&
rMtf
=
*
mpTextEmbeddedBitmapMtf
;
OUString
sId
,
sRefId
;
BitmapChecksum
nId
,
nChecksum
=
0
;
sal_uInt32
nId
,
nChecksum
=
0
;
Point
aPt
;
Size
aSz
;
sal_uLong
nCount
=
rMtf
.
GetActionSize
();
...
...
@@ -1396,7 +1396,7 @@ void SVGTextWriter::implWriteEmbeddedBitmaps()
case
(
MetaActionType
:
:
BMPSCALE
)
:
{
const
MetaBmpScaleAction
*
pA
=
static_cast
<
const
MetaBmpScaleAction
*>
(
pAction
);
nChecksum
=
pA
->
GetBitmap
().
GetChecksum
(
);
nChecksum
=
(
sal_uInt32
)(
pA
->
GetBitmap
().
GetChecksum
()
);
aPt
=
pA
->
GetPoint
();
aSz
=
pA
->
GetSize
();
}
...
...
@@ -1404,7 +1404,7 @@ void SVGTextWriter::implWriteEmbeddedBitmaps()
case
(
MetaActionType
:
:
BMPEXSCALE
)
:
{
const
MetaBmpExScaleAction
*
pA
=
static_cast
<
const
MetaBmpExScaleAction
*>
(
pAction
);
nChecksum
=
pA
->
GetBitmapEx
().
GetChecksum
(
);
nChecksum
=
(
sal_uInt32
)(
pA
->
GetBitmapEx
().
GetChecksum
()
);
aPt
=
pA
->
GetPoint
();
aSz
=
pA
->
GetSize
();
}
...
...
@@ -1779,13 +1779,13 @@ OUString SVGActionWriter::GetPathString( const tools::PolyPolygon& rPolyPoly, bo
return
aPathData
;
}
BitmapChecksum
SVGActionWriter
::
GetChecksum
(
const
MetaAction
*
pAction
)
sal_uInt32
SVGActionWriter
::
GetChecksum
(
const
MetaAction
*
pAction
)
{
GDIMetaFile
aMtf
;
MetaAction
*
pA
=
const_cast
<
MetaAction
*>
(
pAction
);
pA
->
Duplicate
();
aMtf
.
AddAction
(
pA
);
return
aMtf
.
GetChecksum
(
);
return
(
sal_uInt32
)(
aMtf
.
GetChecksum
()
);
}
void
SVGActionWriter
::
ImplWriteLine
(
const
Point
&
rPt1
,
const
Point
&
rPt2
,
...
...
filter/source/svg/svgwriter.hxx
Dosyayı görüntüle @
c8a46ee5
...
...
@@ -357,7 +357,7 @@ private:
public
:
static
OUString
GetPathString
(
const
tools
::
PolyPolygon
&
rPolyPoly
,
bool
bLine
);
static
BitmapChecksum
GetChecksum
(
const
MetaAction
*
pAction
);
static
sal_uInt32
GetChecksum
(
const
MetaAction
*
pAction
);
public
:
...
...
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