summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-02 15:18:09 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-02 15:18:34 +0100
commit861b28b88909ec39fc83fccc0ab23d288128aa0e (patch)
tree352a84c4144892f0cd07cbee7f00d172ce4906ae /dbaccess
parent901fa421e1d446408116d1fe2eb6f070b5946dc9 (diff)
sc lok: fix rounding errors with non-100% zoom
There were two problems here: 1) ScTabView::getRowColumnHeaders() did not expose twip values directly, but used ScRow/ColBar::GetEntrySize(), which does a twip -> pixel conversion, and then converted it back to twip. Avoid this unnecessary roundtrip. 2) ScViewData::ToPixel() trunaces the resulting float to an integer, so if the result is e.g. 67.7 pixels, then Calc handled that as 67, but gtktiledviewer rounded that up to 68, resulting in non-matching headers for the rendered tiles. Change-Id: Ie6ed1ea923a423d1526eeb235b7b87106fd2f20b
Diffstat (limited to 'dbaccess')
0 files changed, 0 insertions, 0 deletions