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
2be700ef
Kaydet (Commit)
2be700ef
authored
Tem 01, 2014
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i125187 more precision at ppt import where the BLIP graphic is located
üst
b7aea08c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
8 deletions
+29
-8
msdffimp.cxx
filter/source/msfilter/msdffimp.cxx
+29
-8
No files found.
filter/source/msfilter/msdffimp.cxx
Dosyayı görüntüle @
2be700ef
...
...
@@ -6054,25 +6054,46 @@ void SvxMSDffManager::GetDrawingGroupContainerData( SvStream& rSt, sal_uLong nLe
nLenFBSE
=
nLength
;
// ist FBSE gross genug fuer unsere Daten
sal_Bool
bOk
=
(
nSkipBLIPLen
+
4
+
nSkipBLIPPos
+
4
<=
nLenFBSE
);
bool
bBLIPIsDirectlyEmbedded
(
false
);
if
(
bOk
)
if
(
bOk
)
{
rSt
.
SeekRel
(
nSkipBLIPLen
);
rSt
.
SeekRel
(
nSkipBLIPLen
);
rSt
>>
nBLIPLen
;
rSt
.
SeekRel
(
nSkipBLIPPos
);
// #125187# do not simply skip these four bytes, but read them. This value
// is zero when the BLIP is embedded to the FBSE directly following in the
// stream, else 1. Use this as hint to be more reliable (see below)
rSt
>>
nBLIPPos
;
if
(
0
==
nBLIPPos
)
{
bBLIPIsDirectlyEmbedded
=
true
;
}
rSt
>>
nBLIPPos
;
bOk
=
rSt
.
GetError
()
==
0
;
nLength
-=
nSkipBLIPLen
+
4
+
nSkipBLIPPos
+
4
;
nLength
-=
nSkipBLIPLen
+
4
+
nSkipBLIPPos
+
4
;
}
if
(
bOk
)
{
// Besonderheit:
// Falls nBLIPLen kleiner ist als nLenFBSE UND nBLIPPos Null ist,
// nehmen wir an, dass das Bild IM FBSE drin steht!
if
(
(
!
nBLIPPos
)
&&
(
nBLIPLen
<
nLenFBSE
)
)
// #125187# the original check to test if the BLIP is following embeded in the FBSE was
// was (!nBLIPPos && nBLIPLen < nLenFBSE), but there are ppt documents
// where this is not sufficient (what means that for BLIPs in the picture
// stream the same conditions can be true sometimes). I experimented with various
// ppt files and detected that the four bytes before reading the nBLIPPos
// contain a flag which describes that embedding more reliable, thus I will
// use it here now in the form of the bBLIPIsDirectlyEmbedded variable (see above).
// This modification works with all ppt files I found which use directly embedded
// BLIPs and with the file which showed the error. More work may be needed when
// exceptions to this more strict schema may show up, though.
if
(
0
==
nBLIPPos
&&
nBLIPLen
<
nLenFBSE
&&
bBLIPIsDirectlyEmbedded
)
{
// get BLIP file position as directly following embedded
nBLIPPos
=
rSt
.
Tell
()
+
4
;
}
// Das hat ja fein geklappt!
// Wir merken uns, dass wir einen FBSE mehr im Pointer Array haben.
...
...
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