diff options
author | Marco Cecchetti <mrcekets@gmail.com> | 2012-03-07 17:24:01 +0100 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2012-03-07 17:39:13 +0100 |
commit | 9fb6c48b8573283aa6653825e244f59e6a34cec2 (patch) | |
tree | 9b3f70e650523ebe0f138588aec9e9606952fba1 /filter | |
parent | workaround for buggy metafile images (diff) | |
download | core-9fb6c48b8573283aa6653825e244f59e6a34cec2.tar.gz core-9fb6c48b8573283aa6653825e244f59e6a34cec2.zip |
Fixed a bug: when the SlideNumber placeholder field does not exist at all in the master page the 'element' attribute of the related PlaceholderShape object is null, so the 'element' attribute has to be checked in thePlaceholderShape.setVisibility method.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/presentation_engine.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index aa2835a4a87a..252955dd980d 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -1309,17 +1309,21 @@ PlaceholderShape.prototype.setTextContent = function( sText ) PlaceholderShape.prototype.setVisibility = function( nVisibility ) { + if( !this.element ) + { + return; + } this.element.setAttribute( 'visibility', aVisibilityAttributeValue[nVisibility] ); }; PlaceholderShape.prototype.show = function() { - this.element.setAttribute( 'visibility', 'visible' ); + this.setVisibility( VISIBLE ); }; PlaceholderShape.prototype.hide = function() { - this.element.setAttribute( 'visibility', 'hidden' ); + this.setVisibility( HIDDEN ); }; /* private methods */ |