[Marble-bugs] [Bug 249628] New: MarbleWidget::zoomView(MarbleWidget::zoom()) is off by one
Volker Lanz
vl at fidra.de
Tue Aug 31 15:11:09 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=249628
Summary: MarbleWidget::zoomView(MarbleWidget::zoom()) is off by
one
Product: marble
Version: unspecified
Platform: Compiled Sources
OS/Version: MS Windows
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: marble-bugs at kde.org
ReportedBy: vl at fidra.de
Version: unspecified (using Devel)
OS: MS Windows
This little snippet:
-----
Marble::MarbleWidget* marbleWidget = new Marble::MarbleWidget(this);
// ...
const int zoom = marbleWidget->zoom();
// ...
marbleWidget->zoomView(zoom);
-----
should not, AFAICS, change the zoom for a marble widget; it zooms out a tiny
bit, however. Calling marbleWidget->zoomView(zoom + 1) fixes this, so I suspect
there's an off by one error somewhere.
Reproducible: Always
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Marble-bugs
mailing list