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
064adfcd
Kaydet (Commit)
064adfcd
authored
Nis 04, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#119176# corrected file type detection for SVG for svg files without xml header
üst
8d6ef652
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
filter.cxx
svtools/source/filter/filter.cxx
+38
-0
grfcache.cxx
svtools/source/graphic/grfcache.cxx
+3
-0
notxtfrm.cxx
sw/source/core/doc/notxtfrm.cxx
+1
-1
No files found.
svtools/source/filter/filter.cxx
Dosyayı görüntüle @
064adfcd
...
@@ -717,6 +717,44 @@ static sal_Bool ImpPeekGraphicFormat( SvStream& rStream, String& rFormatExtensio
...
@@ -717,6 +717,44 @@ static sal_Bool ImpPeekGraphicFormat( SvStream& rStream, String& rFormatExtensio
delete
[]
pBuf
;
delete
[]
pBuf
;
}
}
if
(
bIsSvg
)
{
rFormatExtension
=
UniString
::
CreateFromAscii
(
"SVG"
,
3
);
return
sal_True
;
}
}
else
{
// #119176# Svg files which have no xml header at all have shown up,
// detect those, too
bool
bIsSvg
(
false
);
// check for svg element in 1st 256 bytes
if
(
ImplSearchEntry
(
sFirstBytes
,
(
sal_uInt8
*
)
"<svg"
,
256
,
4
))
// '<svg'
{
bIsSvg
=
true
;
}
if
(
!
bIsSvg
)
{
// look for '<svg' in full file. Should not happen too
// often since the tests above will handle most cases, but can happen
// with Svg files containing big comment headers or Svg as the host
// language
const
sal_uLong
nSize
((
nStreamLen
>
2048
)
?
2048
:
nStreamLen
);
sal_uInt8
*
pBuf
=
new
sal_uInt8
[
nSize
];
rStream
.
Seek
(
nStreamPos
);
rStream
.
Read
(
pBuf
,
nSize
);
if
(
ImplSearchEntry
(
pBuf
,
(
sal_uInt8
*
)
"<svg"
,
nSize
,
4
))
// '<svg'
{
bIsSvg
=
true
;
}
delete
[]
pBuf
;
}
if
(
bIsSvg
)
if
(
bIsSvg
)
{
{
rFormatExtension
=
UniString
::
CreateFromAscii
(
"SVG"
,
3
);
rFormatExtension
=
UniString
::
CreateFromAscii
(
"SVG"
,
3
);
...
...
svtools/source/graphic/grfcache.cxx
Dosyayı görüntüle @
064adfcd
...
@@ -407,6 +407,9 @@ void GraphicCacheEntry::GraphicObjectWasSwappedOut( const GraphicObject& /*rObj*
...
@@ -407,6 +407,9 @@ void GraphicCacheEntry::GraphicObjectWasSwappedOut( const GraphicObject& /*rObj*
delete
mpBmpEx
,
mpBmpEx
=
NULL
;
delete
mpBmpEx
,
mpBmpEx
=
NULL
;
delete
mpMtf
,
mpMtf
=
NULL
;
delete
mpMtf
,
mpMtf
=
NULL
;
delete
mpAnimation
,
mpAnimation
=
NULL
;
delete
mpAnimation
,
mpAnimation
=
NULL
;
// #119176# also reset SvgData
maSvgData
.
reset
();
}
}
}
}
...
...
sw/source/core/doc/notxtfrm.cxx
Dosyayı görüntüle @
064adfcd
...
@@ -869,7 +869,7 @@ bool paintUsingPrimitivesHelper(
...
@@ -869,7 +869,7 @@ bool paintUsingPrimitivesHelper(
if
(
bMirrorX
||
bMirrorY
)
if
(
bMirrorX
||
bMirrorY
)
{
{
aMappingTransform
.
translate
(
-
aTargetRange
.
getCenterX
(),
-
aTargetRange
.
getCenterY
());
aMappingTransform
.
translate
(
-
aTargetRange
.
getCenterX
(),
-
aTargetRange
.
getCenterY
());
aMappingTransform
.
scale
(
bMirrorX
?
-
1.0
:
1.0
,
bMirror
X
?
-
1.0
:
1.0
);
aMappingTransform
.
scale
(
bMirrorX
?
-
1.0
:
1.0
,
bMirror
Y
?
-
1.0
:
1.0
);
// #119176# small typo with X/Y
aMappingTransform
.
translate
(
aTargetRange
.
getCenterX
(),
aTargetRange
.
getCenterY
());
aMappingTransform
.
translate
(
aTargetRange
.
getCenterX
(),
aTargetRange
.
getCenterY
());
}
}
...
...
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