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
76336334
Kaydet (Commit)
76336334
authored
Nis 26, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ugly hack for NS_ooxml::LN_CT_Style_type being the first attribute processed
Change-Id: I32e91c1a42619676467ac121865673733e8053f2
üst
5f668959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
OOXMLPropertySetImpl.cxx
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
+15
-1
No files found.
writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
Dosyayı görüntüle @
76336334
...
...
@@ -25,6 +25,7 @@
#include <com/sun/star/drawing/XShape.hpp>
#include <ooxml/OOXMLFastTokens.hxx>
#include "ooxmlLoggers.hxx"
#include <ooxml/resourceids.hxx>
namespace
writerfilter
{
namespace
ooxml
...
...
@@ -467,7 +468,20 @@ void OOXMLPropertySetImpl::add(OOXMLProperty::Pointer_t pProperty)
if
(
pProperty
.
get
()
!=
NULL
&&
pProperty
->
getId
()
!=
0x0
)
{
mProperties
.
push_back
(
pProperty
);
/*
HACK: Ugly hack. This retarded overdesigned writerfilter thing
processes attributes in random order (as given by boost::unordered_map
when iterating it), but StyleSheetTable::lcl_attribute() needs
to know whether NS_ooxml::LN_CT_Style_type is STYLE_TYPE_TABLE first.
And all this overdesigned machinery doesn't even give a reasonable
way to find out if an attribute is there before encountering it
in random order in lcl_attribute(), so just make sure here that
the attribute comes first.
*/
if
(
pProperty
->
getId
()
==
NS_ooxml
::
LN_CT_Style_type
)
mProperties
.
insert
(
mProperties
.
begin
(),
pProperty
);
else
mProperties
.
push_back
(
pProperty
);
}
#ifdef DEBUG_PROPERTY_SET
else
...
...
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