summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2012-08-25 12:01:24 +0200
committerThorsten Behrens <tbehrens@suse.com>2012-10-10 12:03:31 +0200
commit3bf528b4dff743b604a84ff7d02066e0d4f2a145 (patch)
tree55b2b4280cd7a54b2a505bee9cdcbbf1dba5ff51 /filter
parent83be76cab18745ff1f8b8343a2fd53a7d13194ad (diff)
Bug fix: fixed date/time fields were not exported correctly when positioned chars are used.
Diffstat (limited to 'filter')
-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 dec1eee11e33..a94d7846c907 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] );
+ }
+ }
+ }
}
}
};