Code

Coords: fix SPDesktop::point() method
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 4 Apr 2010 21:45:07 +0000 (23:45 +0200)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Sun, 4 Apr 2010 21:45:07 +0000 (23:45 +0200)
src/desktop.cpp

index 1953ae2a6e8db730bfff77ff61f52a8f398ba6dd..6690e0af13eabbd6086241aebbb93474b7ce178c 100644 (file)
@@ -724,8 +724,8 @@ SPDesktop::point() const
 
     if (p[Geom::X] >= r0[Geom::X] &&
         p[Geom::X] <= r1[Geom::X] &&
-        p[Geom::Y] >= r1[Geom::Y] &&
-        p[Geom::Y] <= r0[Geom::Y])
+        p[Geom::Y] >= r0[Geom::Y] &&
+        p[Geom::Y] <= r1[Geom::Y])
     {
         return p;
     } else {