-rw-r--r-- | library/lnkproperties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp index 0b30a9a..745ee2c 100644 --- a/library/lnkproperties.cpp +++ b/library/lnkproperties.cpp | |||
@@ -116,7 +116,7 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) | |||
116 | d->preload->hide(); | 116 | d->preload->hide(); |
117 | if ( !l->property("Rotation"). isEmpty ()) { | 117 | if ( !l->property("Rotation"). isEmpty ()) { |
118 | d->rotate->setChecked ( true ); | 118 | d->rotate->setChecked ( true ); |
119 | d->rotateButtons->setButton(((QPEApplication::defaultRotation()+l->rotation().toInt())%360)/90); | 119 | d->rotateButtons->setButton((l->rotation().toInt()%360)/90); |
120 | } | 120 | } |
121 | else { | 121 | else { |
122 | d->rotateButtons->setEnabled(false); | 122 | d->rotateButtons->setEnabled(false); |
@@ -295,7 +295,7 @@ void LnkProperties::done(int ok) | |||
295 | if (d->rotateButtons->find(rot)->isOn()) | 295 | if (d->rotateButtons->find(rot)->isOn()) |
296 | break; | 296 | break; |
297 | } | 297 | } |
298 | newrot = QString::number((QPEApplication::defaultRotation()+rot*90)%360); | 298 | newrot = QString::number((rot*90)%360); |
299 | } | 299 | } |
300 | if (newrot !=lnk->rotation()) { | 300 | if (newrot !=lnk->rotation()) { |
301 | lnk->setRotation(newrot); | 301 | lnk->setRotation(newrot); |