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
f593a2e4
Kaydet (Commit)
f593a2e4
authored
Şub 03, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#59419 fix RTF import of hex form of \r and \n
Change-Id: Ic700cdc67f756cafc454c326b73f680a8a47a6e8
üst
c8956344
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
fdo59419.rtf
sw/qa/extras/rtfimport/data/fdo59419.rtf
+5
-0
rtfimport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
+10
-0
rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
+8
-0
No files found.
sw/qa/extras/rtfimport/data/fdo59419.rtf
0 → 100644
Dosyayı görüntüle @
f593a2e4
{\rtf1
\trowd\cellx3000\pard\plain\intbl the next cell will be empty\cell\row
\pard\trowd\cellx3000\pard\plain\intbl\'0d\cell\row
\pard\par
}
sw/qa/extras/rtfimport/rtfimport.cxx
Dosyayı görüntüle @
f593a2e4
...
@@ -139,6 +139,7 @@ public:
...
@@ -139,6 +139,7 @@ public:
void
testFdo44053
();
void
testFdo44053
();
void
testFdo48440
();
void
testFdo48440
();
void
testFdo58646
();
void
testFdo58646
();
void
testFdo59419
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -249,6 +250,7 @@ void Test::run()
...
@@ -249,6 +250,7 @@ void Test::run()
{
"fdo44053.rtf"
,
&
Test
::
testFdo44053
},
{
"fdo44053.rtf"
,
&
Test
::
testFdo44053
},
{
"fdo48440.rtf"
,
&
Test
::
testFdo48440
},
{
"fdo48440.rtf"
,
&
Test
::
testFdo48440
},
{
"fdo58646.rtf"
,
&
Test
::
testFdo58646
},
{
"fdo58646.rtf"
,
&
Test
::
testFdo58646
},
{
"fdo59419.rtf"
,
&
Test
::
testFdo59419
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -1078,6 +1080,14 @@ void Test::testFdo58646()
...
@@ -1078,6 +1080,14 @@ void Test::testFdo58646()
CPPUNIT_ASSERT_EQUAL
(
2
,
getPages
());
CPPUNIT_ASSERT_EQUAL
(
2
,
getPages
());
}
}
void
Test
::
testFdo59419
()
{
// Junk to be ignored broke import of the table.
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTablesSupplier
->
getTextTables
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
1
),
xTables
->
getCount
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
writerfilter/source/rtftok/rtfdocumentimpl.cxx
Dosyayı görüntüle @
f593a2e4
...
@@ -945,6 +945,14 @@ void RTFDocumentImpl::singleChar(sal_uInt8 nValue, bool bRunProps)
...
@@ -945,6 +945,14 @@ void RTFDocumentImpl::singleChar(sal_uInt8 nValue, bool bRunProps)
void
RTFDocumentImpl
::
text
(
OUString
&
rString
)
void
RTFDocumentImpl
::
text
(
OUString
&
rString
)
{
{
if
(
rString
.
getLength
()
==
1
)
{
// No cheating! Tokenizer ignores bare \r and \n, their hex \'0d / \'0a form doesn't count, either.
char
ch
=
rString
.
getStr
()[
0
];
if
(
ch
==
0x0d
||
ch
==
0x0a
)
return
;
}
bool
bRet
=
true
;
bool
bRet
=
true
;
switch
(
m_aStates
.
top
().
nDestinationState
)
switch
(
m_aStates
.
top
().
nDestinationState
)
{
{
...
...
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