Skip to content

Commit

Permalink
Fix for Issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed May 18, 2017
1 parent 5be78a6 commit 24f34ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/pptxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3191,8 +3191,10 @@ var PptxGenJS = function(){
return this;
};

slideObj.addText = function( text, options ) {
slideObj.addText = function( inText, options ) {
var opt = ( options && typeof options === 'object' ? options : {} );
var text = ( inText || '' );
if ( Array.isArray(text) && text.length == 0 ) text = '';

// STEP 1: Grab Slide object count
slideObjNum = gObjPptx.slides[slideNum].data.length;
Expand Down

0 comments on commit 24f34ff

Please sign in to comment.