Skip to content

Commit

Permalink
Merge pull request danielearwicker#33 from creately/fix-getDrawableCo…
Browse files Browse the repository at this point in the history
…ntent

Updated getDrawableContent
  • Loading branch information
thani-sh authored Jul 12, 2019
2 parents 8ef4e66 + 74e163c commit 9161538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@creately/carota",
"author": "Daniel Earwicker ([email protected])",
"description": "Simple, flexible rich text rendering/editing on HTML Canvas",
"version": "2.8.0",
"version": "2.8.1",
"repository": {
"type": "git",
"url": "https://github.com/danielearwicker/carota.git"
Expand Down
5 changes: 4 additions & 1 deletion src/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ var prototype = node.derive({
for (let j = 0; j < line.positionedWords.length; j++) {
var left = line.positionedWords[j].left;
var word = line.positionedWords[j].word;
var text = word.text.parts[0];

if ( !word.text.parts || !word.text.parts.length || !word.text.parts[0] ) {
continue;
}
var text = word.text.parts[0];
if ( text.run.underline === true ) {
underLines.push({
baseline: line.baseline,
Expand Down

0 comments on commit 9161538

Please sign in to comment.