From: dvlierop2 Date: Fri, 11 Jan 2008 22:25:33 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6dd851673e3fb216d44481ec41a003baa04f066e;p=inkscape.git --- diff --git a/src/snap.cpp b/src/snap.cpp index 3bee26f73..73a3b010b 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -527,13 +527,12 @@ std::pair SnapManager::_snapTransformed( if (transformation_type == SCALE) { // When scaling, don't ever exit with one of scaling components set to NR_HUGE - if (best_transformation == NR::Point(NR_HUGE, NR_HUGE)) { - best_transformation == transformation; // return the original (i.e. un-snapped) transformation - } else { - // Still one of the transformation components could be NR_HUGE - for (int index = 0; index < 2; index++) { - if (best_transformation[index] == NR_HUGE) { - best_transformation[index] == uniform ? best_transformation[1-index] : transformation[index]; + for (int index = 0; index < 2; index++) { + if (best_transformation[index] == NR_HUGE) { + if (uniform && best_transformation[1-index] < NR_HUGE) { + best_transformation[index] = best_transformation[1-index]; + } else { + best_transformation[index] = transformation[index]; } } }