summaryrefslogtreecommitdiffstats
path: root/src/star-context.cpp
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-02-15 19:04:29 +0000
committerrwst <rwst@users.sourceforge.net>2006-02-15 19:04:29 +0000
commit7b0114087822b9f011d740f1279d1d9ed983a88c (patch)
tree159bd147d5a3b2daa65b327dd3f5d0b2e764eeb9 /src/star-context.cpp
parentfix 1432089: stroke is not drawn not only when it's not set but also when it'... (diff)
downloadinkscape-7b0114087822b9f011d740f1279d1d9ed983a88c.tar.gz
inkscape-7b0114087822b9f011d740f1279d1d9ed983a88c.zip
bulk trailing spaces removal. consistency through MD5 of binary
(bzr r149)
Diffstat (limited to 'src/star-context.cpp')
-rw-r--r--src/star-context.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/star-context.cpp b/src/star-context.cpp
index bee392863..f796f77a9 100644
--- a/src/star-context.cpp
+++ b/src/star-context.cpp
@@ -253,7 +253,7 @@ sp_star_context_set (SPEventContext *ec, const gchar *key, const gchar *val)
sc->rounded = (val) ? g_ascii_strtod (val, NULL) : 0.0;
} else if (!strcmp (key, "randomized")) {
sc->randomized = (val) ? g_ascii_strtod (val, NULL) : 0.0;
- }
+ }
}
static gint sp_star_context_root_handler(SPEventContext *event_context, GdkEvent *event)
@@ -272,11 +272,11 @@ static gint sp_star_context_root_handler(SPEventContext *event_context, GdkEvent
switch (event->type) {
case GDK_BUTTON_PRESS:
if (event->button.button == 1) {
-
+
dragging = TRUE;
sc->center = Inkscape::setup_for_drag_start(desktop, event_context, event);
-
+
SnapManager const m(desktop->namedview);
sc->center = m.freeSnap(Inkscape::Snapper::SNAP_POINT, sc->center, sc->item).getPoint();
@@ -432,7 +432,7 @@ static void sp_star_drag(SPStarContext *sc, NR::Point p, guint state)
NR::Point const d = p1 - p0;
NR::Coord const r1 = NR::L2(d);
double arg1 = atan2(d);
-
+
if (state & GDK_CONTROL_MASK) {
/* Snap angle */
arg1 = sp_round(arg1, M_PI / snaps);
@@ -448,7 +448,7 @@ static void sp_star_drag(SPStarContext *sc, NR::Point p, guint state)
_("<b>Polygon</b>: radius %s, angle %5g&#176;; with <b>Ctrl</b> to snap angle")
: _("<b>Star</b>: radius %s, angle %5g&#176;; with <b>Ctrl</b> to snap angle") ),
rads->str, sp_round((arg1) * 180 / M_PI, 0.0001));
-
+
g_string_free(rads, FALSE);
}