Last tile in a row/column has a wrong size
Bug #1516239 reported by
Stefano Verzegnassi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Document Viewer App |
Fix Released
|
High
|
Stefano Verzegnassi |
Bug Description
Tiles in the LibreOffice viewer are placed into a grid. Last items of a row or a column have an hard-coded size of 256x256px.
We currently assume that (documentSize.width % TILE_SIZE) is always zero, but that's not true.
We should check instead which is the size of the document still not covered by the last tile in the row/column and cover only that part of the document canvas.
See attached screenshot.
Related branches
lp:~verzegnassi-stefano/ubuntu-docviewer-app/reboot-lok-dont-be-dumb
- Alan Pope 🍺🐧🐱 🦄 (community): Approve
- Jenkins Bot: Approve (continuous-integration)
-
Diff: 127 lines (+45/-33)2 files modifiedsrc/plugin/libreofficetoolkit-qml-plugin/loview.cpp (+44/-32)
src/plugin/libreofficetoolkit-qml-plugin/loview.h (+1/-1)
Changed in ubuntu-docviewer-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:ubuntu-docviewer-app at revision 202, scheduled for release in ubuntu- docviewer- app, milestone Unknown