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
426077fb
Kaydet (Commit)
426077fb
authored
Nis 16, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#77027: add some comments to prevent such oversights
Change-Id: I381c9738bba3e422e01324fa0c781c857db3d360
üst
5d53cabb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
xmlimp.hxx
include/xmloff/xmlimp.hxx
+7
-0
XMLGraphicsDefaultStyle.cxx
xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
+5
-0
No files found.
include/xmloff/xmlimp.hxx
Dosyayı görüntüle @
426077fb
...
...
@@ -430,11 +430,18 @@ public:
static
const
sal_uInt16
OOo_34x
=
34
;
// for AOO, no release overlaps with OOo, so continue OOo version numbers
static
const
sal_uInt16
AOO_40x
=
40
;
// @ATTENTION: it's not usually ok to use the "4x" "wildcard" in an "=="
// comparison, since that will match unreleased versions too; it is also
// risky to use it in "<" comparison, because it requires checking and
// possibly adapting all such uses when a new value for a more specific
// version is added.
static
const
sal_uInt16
AOO_4x
=
41
;
static
const
sal_uInt16
LO_flag
=
0x100
;
static
const
sal_uInt16
LO_3x
=
30
|
LO_flag
;
static
const
sal_uInt16
LO_41x
=
41
|
LO_flag
;
static
const
sal_uInt16
LO_42x
=
42
|
LO_flag
;
/// @ATTENTION: when adding a new value more specific than "4x", grep for
/// all current uses and adapt them!!!
static
const
sal_uInt16
LO_4x
=
43
|
LO_flag
;
static
const
sal_uInt16
ProductVersionUnknown
=
SAL_MAX_UINT16
;
...
...
xmloff/source/draw/XMLGraphicsDefaultStyle.cxx
Dosyayı görüntüle @
426077fb
...
...
@@ -125,6 +125,11 @@ void XMLGraphicsDefaultStyle::SetDefaults()
xDefaults
->
setPropertyValue
(
"IsFollowingTextFlow"
,
uno
::
makeAny
(
true
));
}
// NOTE: the only reason why it's legal to check "==" (not "<") against
// arbitrary versions here is that the default value of these attributes
// is not defined by ODF, therefore it is implementation-defined
// (and we of course must not override any attributes that are actually
// in the document, so check for that)
bool
const
bIsAOO4
(
GetImport
().
getGeneratorVersion
()
>=
SvXMLImport
::
AOO_40x
&&
GetImport
().
getGeneratorVersion
()
<=
SvXMLImport
::
AOO_4x
);
...
...
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