summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bea2370)
raw | patch | inline | side by side (parent: bea2370)
author | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 4 Mar 2008 23:05:42 +0000 (23:05 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Tue, 4 Mar 2008 23:05:42 +0000 (23:05 +0000) |
src/sp-guide.cpp | patch | blob | history |
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index a6312f985ebc3d0cd7033ef36e4e579ccdacd3f1..81109c4fb3f90376465c57bbab6a01e236bfc98f 100644 (file)
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
GString *position_string_x = SP_PX_TO_METRIC_STRING(guide->point_on_line[X], SP_ACTIVE_DESKTOP->namedview->getDefaultMetric());
GString *position_string_y = SP_PX_TO_METRIC_STRING(guide->point_on_line[Y], SP_ACTIVE_DESKTOP->namedview->getDefaultMetric());
- if ( guide->normal_to_line == component_vectors[X] ) {
+ if ( guide->normal_to_line == component_vectors[X] ||
+ guide->normal_to_line == -component_vectors[X]) {
return g_strdup_printf(_("vertical, at %s"), position_string_x->str);
- } else if ( guide->normal_to_line == component_vectors[Y] ) {
+ } else if ( guide->normal_to_line == component_vectors[Y] ||
+ guide->normal_to_line == -component_vectors[Y]) {
return g_strdup_printf(_("horizontal, at %s"), position_string_y->str);
} else {
double const radians = guide->angle();