Author: toshok
Date: 2008-01-17 15:26:10 -0500 (Thu, 17 Jan 2008)
New Revision: 93200

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/stylus.cpp
Log:
2008-01-17  Chris Toshok  <[EMAIL PROTECTED]>

        * stylus.cpp (InkPresenter::OnCollectionChanged): we need to
        invalidate the old bounds of the stroke for ItemRemoved as well as
        ItemChanged.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-01-17 20:23:54 UTC (rev 93199)
+++ trunk/moon/src/ChangeLog    2008-01-17 20:26:10 UTC (rev 93200)
@@ -1,5 +1,11 @@
 2008-01-17  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * stylus.cpp (InkPresenter::OnCollectionChanged): we need to
+       invalidate the old bounds of the stroke for ItemRemoved as well as
+       ItemChanged.
+
+2008-01-17  Chris Toshok  <[EMAIL PROTECTED]>
+
        * rect.h (Rect::Transform): new method, allows for transforming a
        rectangle by a cairo_matrix_t, used with transforming the stroke
        bounds back to screen space using the InkPresenter's

Modified: trunk/moon/src/stylus.cpp
===================================================================
--- trunk/moon/src/stylus.cpp   2008-01-17 20:23:54 UTC (rev 93199)
+++ trunk/moon/src/stylus.cpp   2008-01-17 20:26:10 UTC (rev 93200)
@@ -518,7 +518,7 @@
        case CollectionChangeTypeItemChanged: {
                Stroke *stroke = (Stroke*)obj;
                Invalidate (stroke->GetBounds().Transform (&absolute_xform));
-               if (type == CollectionChangeTypeItemChanged)
+               if (type != CollectionChangeTypeItemAdded)
                        Invalidate (stroke->GetOldBounds().Transform 
(&absolute_xform));
                break;
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to