mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
TextBoxWidget: fix crash when empty last line and alignment center/right (#5691)
This commit is contained in:
@@ -311,6 +311,7 @@ function TextBoxWidget:_splitToLines()
|
||||
offset = size+1,
|
||||
end_offset = nil,
|
||||
width = 0,
|
||||
targeted_width = targeted_width,
|
||||
}
|
||||
end
|
||||
ln = ln + 1
|
||||
|
||||
Reference in New Issue
Block a user