diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-01-08 17:54:22 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-01-08 17:54:22 +0000 |
| commit | dbb015d16d99e2a455dadb0262a19355bcfd69d6 (patch) | |
| tree | a077cc0fcdbd9958382d521fd66b23af3c62cfdd /src/display/snap-indicator.cpp | |
| parent | Language pseudo class should be case-insenstivie (diff) | |
| download | inkscape-dbb015d16d99e2a455dadb0262a19355bcfd69d6.tar.gz inkscape-dbb015d16d99e2a455dadb0262a19355bcfd69d6.zip | |
fix bug (and add parens so we don't rely on operator precedence)
(bzr r12888)
Diffstat (limited to 'src/display/snap-indicator.cpp')
| -rw-r--r-- | src/display/snap-indicator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp index f21b6c81c..627bfb2ab 100644 --- a/src/display/snap-indicator.cpp +++ b/src/display/snap-indicator.cpp @@ -262,7 +262,7 @@ SnapIndicator::set_new_snaptarget(Inkscape::SnappedPoint const &p, bool pre_snap // Display the tooltip, which reveals the type of snap source and the type of snap target gchar *tooltip_str = NULL; - if (p.getSource() != SNAPSOURCE_GRID_PITCH && p.getTarget() != SNAPSOURCE_UNDEFINED) { + if ( (p.getSource() != SNAPSOURCE_GRID_PITCH) && (p.getTarget() != SNAPTARGET_UNDEFINED) ) { tooltip_str = g_strconcat(source_name, _(" to "), target_name, NULL); } else if (p.getSource() != SNAPSOURCE_UNDEFINED) { tooltip_str = g_strdup(source_name); |
