Code

more unreffing temporary styles properly
[inkscape.git] / src / snap.cpp
index 1714b6b67b75b9010efacd5f0361fdfa457e7ef6..3dda92ecbcd73504c982a36737f9205cdc57a693 100644 (file)
@@ -81,14 +81,15 @@ SnapManager::getGridSnappers() const
  * \return true if one of the snappers will try to snap something.
  */
 
-bool SnapManager::willSnapSomething() const
+bool SnapManager::SomeSnapperMightSnap() const
 {
     SnapperList const s = getSnappers();
     SnapperList::const_iterator i = s.begin();
-    while (i != s.end() && (*i)->willSnapSomething() == false) {
+    while (i != s.end() && (*i)->ThisSnapperMightSnap() == false) {
         i++;
     }
 
+    
     return (i != s.end());
 }
 
@@ -302,7 +303,7 @@ std::pair<NR::Point, bool> SnapManager::_snapTransformed(
     */
 
     /* Quick check to see if we have any snappers that are enabled */
-    if (willSnapSomething() == false) {
+    if (SomeSnapperMightSnap() == false) {
         return std::make_pair(transformation, false);
     }