From d584419a19bd52b72155846bd1ed942cc285a587 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 8 Apr 2013 19:11:45 -0400 Subject: patch by Damjan Velickovski for rotation snap degrees, Bug 525508 Fixed bugs: - https://launchpad.net/bugs/525508 (bzr r12274) --- src/select-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/select-context.cpp') diff --git a/src/select-context.cpp b/src/select-context.cpp index 2684cbc1e..9a88bcf20 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -988,7 +988,7 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event) } else if (MOD__CTRL) { sp_selection_rotate(selection, 90); } else if (snaps) { - sp_selection_rotate(selection, 180/snaps); + sp_selection_rotate(selection, 180.0/snaps); } ret = TRUE; break; @@ -1000,7 +1000,7 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event) } else if (MOD__CTRL) { sp_selection_rotate(selection, -90); } else if (snaps) { - sp_selection_rotate(selection, -180/snaps); + sp_selection_rotate(selection, -180.0/snaps); } ret = TRUE; break; -- cgit v1.2.3