show line spacing in CREReader

This might be very slow operation on device because it seems to
invoke whole reflow of document
pull/2/merge
Dobrica Pavlinusic 12 years ago
parent c07090383f
commit d672436c8e

@ -274,6 +274,7 @@ function CREReader:adjustCreReaderCommands()
if self.line_space_percent > 200 then
self.line_space_percent = 200
end
InfoMessage:show("line spacing "..self.line_space_percent.."%", 0)
print("line spacing set to", self.line_space_percent)
cr.doc:setDefaultInterlineSpace(self.line_space_percent)
cr:redrawCurrentPage()
@ -286,6 +287,7 @@ function CREReader:adjustCreReaderCommands()
if self.line_space_percent < 100 then
self.line_space_percent = 100
end
InfoMessage:show("line spacing "..self.line_space_percent.."%", 0)
print("line spacing set to", self.line_space_percent)
cr.doc:setDefaultInterlineSpace(self.line_space_percent)
cr:redrawCurrentPage()

Loading…
Cancel
Save