show line spacing in CREReader

This might be very slow operation on device because it seems to
invoke whole reflow of document
This commit is contained in:
Dobrica Pavlinusic
2012-04-16 21:30:27 +02:00
parent c07090383f
commit d672436c8e

View File

@@ -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()