summaryrefslogtreecommitdiff
path: root/writerfilter/source/ooxml/Handler.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2011-03-31 12:43:00 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2011-03-31 12:43:07 +0200
commit976e2c074b7abf9ad500a0cc7664110820512312 (patch)
treeb2c8ed7035f73e62eb7374121313b5f0e4ca6458 /writerfilter/source/ooxml/Handler.cxx
parentecd0148ba550cf033adf7781492c8821d841992e (diff)
fdo#34489: fix the docx import of comments, properly resolve all ids
Comment, footnote and endnote ids are integer values, not strings. The code was using string though the comments ids where defined as integers in the model.xml. All are changed to integer values from now.
Diffstat (limited to 'writerfilter/source/ooxml/Handler.cxx')
-rw-r--r--writerfilter/source/ooxml/Handler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/ooxml/Handler.cxx b/writerfilter/source/ooxml/Handler.cxx
index af0616a8f..cad510a6e 100644
--- a/writerfilter/source/ooxml/Handler.cxx
+++ b/writerfilter/source/ooxml/Handler.cxx
@@ -51,7 +51,7 @@ void OOXMLFootnoteHandler::attribute(Id name, Value & val)
switch (name)
{
case NS_ooxml::LN_CT_FtnEdnRef_id:
- mpFastContext->resolveFootnote(val.getString());
+ mpFastContext->resolveFootnote(sal_Int32(val.getInt()));
break;
default:
break;
@@ -79,7 +79,7 @@ void OOXMLEndnoteHandler::attribute(Id name, Value & val)
switch (name)
{
case NS_ooxml::LN_CT_FtnEdnRef_id:
- mpFastContext->resolveEndnote(val.getString());
+ mpFastContext->resolveEndnote(sal_Int32(val.getInt()));
break;
default:
break;
@@ -107,7 +107,7 @@ void OOXMLCommentHandler::attribute(Id name, Value & val)
switch (name)
{
case NS_ooxml::LN_CT_Markup_id:
- mpFastContext->resolveComment(val.getString());
+ mpFastContext->resolveComment(val.getInt());
break;
default:
;