summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-03-25 00:45:57 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-03-25 00:52:12 +0100
commit446b8cad0809a8b170d70b5c373212d8c0a50553 (patch)
tree56a86409927561332b1deb05fbf2c1e62ab3cbb4 /filter
parentEditor file header and indent consolidation in preseng.js (diff)
downloadcore-446b8cad0809a8b170d70b5c373212d8c0a50553.tar.gz
core-446b8cad0809a8b170d70b5c373212d8c0a50553.zip
Fix exception in javascript (missing placeholder rect)
svg animation export was not working - seems there's not always a rect attribute. Change-Id: I227519e5923652652a806807ac90e5dd9507d649
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/presentation_engine.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index 0d8651f37df2..634033bb130f 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -1995,11 +1995,11 @@ PlaceholderShape.prototype.init = function()
aPlaceholderElement.setAttribute( 'text-anchor', sTextAnchor );
if( sX )
aPlaceholderElement.setAttribute( 'x', sX );
-
- this.element = aTextFieldElement;
- this.textElement = aPlaceholderElement;
}
+ 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 )