Code

Set transform center so that odd stars and polygons rotate correctly.
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 18 Mar 2010 02:20:09 +0000 (03:20 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 18 Mar 2010 02:20:09 +0000 (03:20 +0100)
src/star-context.cpp

index 4d5d9780cbe3cec6693c5495c518817a6c2c1cb5..63a15545f78b1deb9263edc4aa0301427dde9a43 100644 (file)
@@ -485,6 +485,10 @@ sp_star_finish (SPStarContext * sc)
             return;
         }
 
+        // Set transform center, so that odd stars rotate correctly
+        // LP #462157
+        sc->item->setCenter(sc->center);
+
         SPDesktop *desktop = SP_EVENT_CONTEXT(sc)->desktop;
         SPObject *object = SP_OBJECT(sc->item);