Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/4219

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/19/4219/1

fdo#64656 RTF import: handle levelnumbers without leveltext

(cherry picked from commit 2c64af529567324f4433984ed7673304d26062c8)

Conflicts:
        writerfilter/source/rtftok/rtfdocumentimpl.cxx

Change-Id: I34ce7b172dc94489f7f506796e66b14598aab19c
---
A writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf
M writerfilter/source/rtftok/rtfdocumentimpl.cxx
2 files changed, 11 insertions(+), 0 deletions(-)



diff --git a/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf 
b/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf
new file mode 100644
index 0000000..1c815c4
--- /dev/null
+++ b/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf
@@ -0,0 +1,10 @@
+{\rtf
+{\*\listtable 
+{\list \listtemplateid3794224 \listhybrid 
+{\listlevel \levelnfc0 \levelnfcn0 \leveljc0 \leveljcn0 \levelstartat1 \levelfollow0 \levelspace0 
\levelindent0 \levellegal0 \levelnorestart0 
+{\levelnumbers ;}
+}
+{\listname ;}
+\listid258183 }
+}
+}
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx 
b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index e06bace..f9bcdc1 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3727,6 +3727,7 @@
     }
     break;
     case DESTINATION_LEVELNUMBERS:
+    if (aState.aTableSprms.find(NS_ooxml::LN_CT_Lvl_lvlText))
     {
         RTFSprms& rAttributes = 
aState.aTableSprms.find(NS_ooxml::LN_CT_Lvl_lvlText)->getAttributes();
         RTFValue::Pointer_t pValue = rAttributes.find(NS_ooxml::LN_CT_LevelText_val);

-- 
To view, visit https://gerrit.libreoffice.org/4219
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I34ce7b172dc94489f7f506796e66b14598aab19c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Miklos Vajna <vmiklos@suse.cz>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.