frescobaldi / qpageview

page-based viewer widget for Qt5/PyQt5
https://qpageview.org/
GNU General Public License v3.0
20 stars 9 forks source link

Cast floats to ints to fix crash in Frescobaldi. #12

Closed limburgher closed 2 years ago

limburgher commented 2 years ago

Fixes #11

wbsoft commented 2 years ago

Thanks! I have fixed the problems and some more in 0aa77e876028017c8b3eb9e512960a807b4b0545 in a slightly different way (there were some errors, e.g. int(0.9) you use in 9676de9839a8376e5bb9a1aa8d1cab9bc9a688ea yields 0). (Also your PR accidentaly introduced some backup files). I hope I caught all the implicit conversions, please reopen if problems remain!

Thanks again and all the best in 2022!