Revision d1205d8...

Go back to digest for 13th November 2011

Bug Fixes in Office

Dmitry Kazakov committed changes in [calligra] /image:

Fixed updates of clones

1) The KisBaseRectsWalker now saves notifications for the clones.
It does this by calculating uncropped changeRect of the source
layer and storing the node/rect pairs in a special array.
2) KisAsyncMerger takes the contents of this array and notifies the
clones after the source layer's update is finished
3) If clone needs an area of the source layer that was not generated
during normal update (it is placed outside the image), it calculates
its contents in KisUpdateOriginalVisitor by recursively calling to
KisRefreshSubtreeWalker/KisAsyncMerger.

File Changes

Modified 12 files
  • /image
  •   krita/kis_async_merger.cpp
  •   krita/kis_async_merger.h
  •   krita/kis_base_rects_walker.h
  •   krita/kis_layer.cc
  •   krita/kis_layer.h
  •   krita/kis_refresh_subtree_walker.h
  •   krita/kis_simple_update_queue.cpp
  •   krita/kis_simple_update_queue.h
  •   krita/tests/kis_clone_layer_test.cpp
  •   krita/tests/kis_clone_layer_test.h
  •   krita/tests/kis_walkers_test.cpp
  •   krita/tests/kis_walkers_test.h
12 files changed in total