Revision 49f67ef...

Go back to digest for 20th March 2011

Bug Fixes in Office

Dmitry Kazakov committed changes in [calligra] /:

Fixed autoscrolling bug in Krita

I've extracted one method from KoToolProxy and overridden it in newly
created KisToolProxy. This method just converts widget coordinates
into document coordinates.

Fixed a bug reported by Thorsten.

WARNING: Be careful, the definition of 'document origin' differs in
Krita and other flake-based applications. In Krita 'origin' is used
only when the size of the image is less than the size of the image and
vast scrolling is disabled. It is used for centering and means "the
offset from the topLeft of the widget to the corner of the
document". In flake, 'origin' means "the offset of the document in a
big white rectangle that surrounds the document". Krita has no such
rectangle and the origin is used in a different way due to historical
reasons, i guess.


CC,

File Changes

Added 2 files
  • /ui/canvas
  •   krita/kis_tool_proxy.cpp
  •   krita/kis_tool_proxy.h
Modified 5 files
  •   krita/ui/CMakeLists.txt
  •   libs/flake/KoToolProxy.cpp
  •   libs/flake/KoToolProxy.h
  •   libs/flake/KoToolProxy_p.h
  •   krita/ui/canvas/kis_canvas2.cpp
7 files changed in total