summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/seltrans.cpp')
-rw-r--r--src/seltrans.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index f43ce3f76..235c29c65 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -223,9 +223,12 @@ void Inkscape::SelTrans::resetState()
void Inkscape::SelTrans::increaseState()
{
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ bool show_align = prefs->getBool("/dialogs/align/oncanvas", false);
+
if (_state == STATE_SCALE) {
_state = STATE_ROTATE;
- } else if (_state == STATE_ROTATE) {
+ } else if (_state == STATE_ROTATE && show_align) {
_state = STATE_ALIGN;
} else {
_state = STATE_SCALE;