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
cadb3433
Kaydet (Commit)
cadb3433
authored
Mar 25, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#60922 ignore DOCX import of w:position w:val="0"
Change-Id: I10e9c0f1078e36710335a9a48f7f02292c764795
üst
25810de1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
fdo60922.docx
sw/qa/extras/ooxmlimport/data/fdo60922.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+8
-0
DomainMapper.cxx
writerfilter/source/dmapper/DomainMapper.cxx
+3
-1
No files found.
sw/qa/extras/ooxmlimport/data/fdo60922.docx
0 → 100644
Dosyayı görüntüle @
cadb3433
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
cadb3433
...
@@ -121,6 +121,7 @@ public:
...
@@ -121,6 +121,7 @@ public:
void
testFdo59638
();
void
testFdo59638
();
void
testFdo61343
();
void
testFdo61343
();
void
testToolsLineNumbering
();
void
testToolsLineNumbering
();
void
testFdo60922
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -193,6 +194,7 @@ void Test::run()
...
@@ -193,6 +194,7 @@ void Test::run()
{
"fdo59638.docx"
,
&
Test
::
testFdo59638
},
{
"fdo59638.docx"
,
&
Test
::
testFdo59638
},
{
"fdo61343.docx"
,
&
Test
::
testFdo61343
},
{
"fdo61343.docx"
,
&
Test
::
testFdo61343
},
{
"tools-line-numbering.docx"
,
&
Test
::
testToolsLineNumbering
},
{
"tools-line-numbering.docx"
,
&
Test
::
testToolsLineNumbering
},
{
"fdo60922.docx"
,
&
Test
::
testFdo60922
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -1280,6 +1282,12 @@ void Test::testToolsLineNumbering()
...
@@ -1280,6 +1282,12 @@ void Test::testToolsLineNumbering()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
3
),
nValue
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
3
),
nValue
);
}
}
void
Test
::
testFdo60922
()
{
// This was 0, not 100, due to wrong import of w:position w:val="0"
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
100
),
getProperty
<
sal_Int32
>
(
getRun
(
getParagraph
(
1
),
1
),
"CharEscapementHeight"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/source/dmapper/DomainMapper.cxx
Dosyayı görüntüle @
cadb3433
...
@@ -2154,7 +2154,9 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
...
@@ -2154,7 +2154,9 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext, SprmType
case
NS_sprm
:
:
LN_CHpsInc
:
case
NS_sprm
:
:
LN_CHpsInc
:
break
;
// sprmCHpsInc
break
;
// sprmCHpsInc
case
NS_sprm
:
:
LN_CHpsPos
:
case
NS_sprm
:
:
LN_CHpsPos
:
m_pImpl
->
deferCharacterProperty
(
nSprmId
,
uno
::
makeAny
(
nIntValue
));
// The spec says 0 is the same as the lack of the value, so don't parse that.
if
(
nIntValue
)
m_pImpl
->
deferCharacterProperty
(
nSprmId
,
uno
::
makeAny
(
nIntValue
));
break
;
// sprmCHpsPos
break
;
// sprmCHpsPos
case
NS_sprm
:
:
LN_CHpsPosAdj
:
case
NS_sprm
:
:
LN_CHpsPosAdj
:
break
;
// sprmCHpsPosAdj
break
;
// sprmCHpsPosAdj
...
...
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