summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2012-08-25 12:01:24 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2012-08-25 12:01:24 +0200
commitc0a08eab93861e3c4a0e75a7b3c0deb5843a1123 (patch)
treecb17c3640c2e9ac201adb6d033d67ea391ae5cb9
parent6f13ead35f4b003e03268fc5f2553909ec466dcd (diff)
Bug fix: fixed date/time fields were not exported correctly when positioned chars are used.
-rw-r--r--filter/source/svg/presentation_engine.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index 91110b7f0f9e..a525744dd4ff 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -2323,6 +2323,24 @@ PlaceholderShape.prototype.init = function()
this.element = aTextFieldElement;
this.textElement = aPlaceholderElement;
}
+
+ // We remove all text lines but the first one used as placeholder.
+ var aTextLineGroupElem = this.textElement.parentNode.parentNode;
+ if( aTextLineGroupElem )
+ {
+ // Just to be sure it is the element we are looking for.
+ var sFontFamilyAttr = aTextLineGroupElem.getAttribute( 'font-family' );
+ if( sFontFamilyAttr )
+ {
+ var aChildSet = getElementChildren( aTextLineGroupElem );
+ if( aChildSet.length > 1 )
+ var i = 1;
+ for( ; i < aChildSet.length; ++i )
+ {
+ aTextLineGroupElem.removeChild( aChildSet[i] );
+ }
+ }
+ }
}
}
};