-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.cpp b/noncore/graphics/opie-eye/gui/mainwindow.cpp index 6f3f255..5ba4c8e 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.cpp +++ b/noncore/graphics/opie-eye/gui/mainwindow.cpp @@ -164,12 +164,15 @@ void PMainWindow::slotRotateToggled(bool how) void PMainWindow::slotScaleToggled(bool how) { autoScale = !how; + if (!how) { + autoRotate = how; + } if (m_disp) { - m_disp->setAutoScale(autoScale); + m_disp->setAutoScaleRotate(autoScale,autoRotate); } - if (!autoScale && autoRotate) { + if (!autoScale) { rotateButton->setOn(false); } rotateButton->setEnabled(!how); } |