summaryrefslogtreecommitdiffstats
path: root/src/snap-preferences.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-01-01 20:06:51 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-01-01 20:06:51 +0000
commit1feb29aa4b344392000609e310433015454bd626 (patch)
treef1b2e69b151104c0031fc711d0d8cc8caf13359d /src/snap-preferences.cpp
parentadding 'inductiveload' to AUTHORS (diff)
downloadinkscape-1feb29aa4b344392000609e310433015454bd626.tar.gz
inkscape-1feb29aa4b344392000609e310433015454bd626.zip
Refactor snapping of gradient handles; now behaves like all other snapping, i.e. no more snapping to imaginary infinite lines along the bounding box
Fixed bugs: - https://launchpad.net/bugs/371001 (bzr r8932)
Diffstat (limited to 'src/snap-preferences.cpp')
-rw-r--r--src/snap-preferences.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/snap-preferences.cpp b/src/snap-preferences.cpp
index 3e396a216..0ba3b15dc 100644
--- a/src/snap-preferences.cpp
+++ b/src/snap-preferences.cpp
@@ -17,7 +17,7 @@
Inkscape::SnapPreferences::PointType const Inkscape::SnapPreferences::SNAPPOINT_NODE = 0x1;
Inkscape::SnapPreferences::PointType const Inkscape::SnapPreferences::SNAPPOINT_BBOX = 0x2;
-Inkscape::SnapPreferences::PointType const Inkscape::SnapPreferences::SNAPPOINT_GUIDE = 0x4;
+Inkscape::SnapPreferences::PointType const Inkscape::SnapPreferences::SNAPPOINT_OTHER = 0x4;
Inkscape::SnapPreferences::SnapPreferences() :
@@ -32,7 +32,7 @@ Inkscape::SnapPreferences::SnapPreferences() :
_snap_to_page_border(false),
_strict_snapping(true)
{
- setSnapFrom(SNAPPOINT_BBOX | SNAPPOINT_NODE | SNAPPOINT_GUIDE, true); //Snap any point. In v0.45 and earlier, this was controlled in the preferences tab
+ setSnapFrom(SNAPPOINT_BBOX | SNAPPOINT_NODE | SNAPPOINT_OTHER, true); //Snap any point. In v0.45 and earlier, this was controlled in the preferences tab
}
/*
@@ -86,15 +86,15 @@ bool Inkscape::SnapPreferences::getSnapModeAny() const
void Inkscape::SnapPreferences::setSnapModeGuide(bool enabled)
{
if (enabled) {
- _snap_from |= Inkscape::SnapPreferences::SNAPPOINT_GUIDE;
+ _snap_from |= Inkscape::SnapPreferences::SNAPPOINT_OTHER;
} else {
- _snap_from &= ~Inkscape::SnapPreferences::SNAPPOINT_GUIDE;
+ _snap_from &= ~Inkscape::SnapPreferences::SNAPPOINT_OTHER;
}
}
bool Inkscape::SnapPreferences::getSnapModeGuide() const
{
- return (_snap_from & Inkscape::SnapPreferences::SNAPPOINT_GUIDE);
+ return (_snap_from & Inkscape::SnapPreferences::SNAPPOINT_OTHER);
}
/**