diff --git a/src/grid-snapper.cpp b/src/grid-snapper.cpp
index 61bfa30d49195b4129f3204cd29e2b9a28d2ddef..f1d4e4bf6ffe5ce3a4d3662ea5cab55614f10abd 100644 (file)
--- a/src/grid-snapper.cpp
+++ b/src/grid-snapper.cpp
* 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
*/
{
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
}
g_assert(griditem != NULL);
-
+
for (unsigned int i = 0; i < 2; ++i) {
/* This is to make sure we snap to only visible grid lines */
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));
}