Skip to content

Commit

Permalink
Update memo.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Mar 10, 2022
1 parent 9a3a102 commit 22785ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/memo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ end
function dgsMemoGetLineCount(memo,strongLineOnly)
if dgsGetType(memo) ~= "dgs-dxmemo" then error(dgsGenAsrt(memo,"dgsMemoGetLineCount",1,"dgs-dxmemo")) end
if not strongLineOnly and dgsElementData[memo].wordWrap then
if dgsElementData[memo].rebuildMapTableNextFrame then dgsMemoRebuildWordWrapMapTable(memo) end
return #dgsElementData[memo].wordWrapMapText
end
return #dgsElementData[memo].text
Expand Down

0 comments on commit 22785ae

Please sign in to comment.