summaryrefslogtreecommitdiffstats
path: root/src/grid-snapper.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/grid-snapper.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/grid-snapper.cpp')
-rw-r--r--src/grid-snapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/grid-snapper.cpp b/src/grid-snapper.cpp
index 61bfa30d4..f1d4e4bf6 100644
--- a/src/grid-snapper.cpp
+++ b/src/grid-snapper.cpp
@@ -7,7 +7,7 @@
* Frank Felfe <innerspace@iname.com>
* Carl Hetherington <inkscape@carlh.net>
*
- * Copyright (C) 1999-2002 Authors
+ * Copyright (C) 1999-2002 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -39,7 +39,7 @@ Inkscape::LineSnapper::LineList Inkscape::GridSnapper::_getSnapLines(NR::Point c
{
LineList s;
- SPCGrid *griditem = NULL;
+ SPCGrid *griditem = NULL;
for (GSList *l = _named_view->gridviews; l != NULL; l = l->next) {
// FIXME : this is a hack since there is only one view for now
// but when we'll handle multiple views, snapping should
@@ -50,7 +50,7 @@ Inkscape::LineSnapper::LineList Inkscape::GridSnapper::_getSnapLines(NR::Point c
}
g_assert(griditem != NULL);
-
+
for (unsigned int i = 0; i < 2; ++i) {
/* This is to make sure we snap to only visible grid lines */
@@ -59,7 +59,7 @@ Inkscape::LineSnapper::LineList Inkscape::GridSnapper::_getSnapLines(NR::Point c
NR::Coord const rounded = round_to_nearest_multiple_plus(p[i],
_named_view->gridspacing[i] * scale,
_named_view->gridorigin[i]);
-
+
s.push_back(std::make_pair(NR::Dim2(i), rounded));
}