Revision 4763ed0...

Go back to digest for 23rd June 2013

Bug Fixes in Office

Boudewijn Rempt committed changes in [calligra] /ui:

Fix a bug when enabling mirroring and trying the scratchpad

When enabling horizontal and vertical mirroring, painting on the scratchpad
was broken. This was because the scratchpad creates a KisResourceSnapshot
with a 0 image pointer. The snapshot then created a default KisDefaultBounds
object with a 0 image pointer.

That means the KisToolFreehandHelper was told to use an infinite rect
for calculating the mirroring, and iterating over infinity takes a bit of
time.

Fixed by passing the scratchpad's defaultBounds object to the freehand
tool helper, which passes it to the resources snapshot.

File Changes

Modified 5 files
  • /ui
  •   krita/tool/kis_resources_snapshot.cpp
  •   krita/tool/kis_resources_snapshot.h
  •   krita/tool/kis_tool_freehand_helper.cpp
  •   krita/tool/kis_tool_freehand_helper.h
  •   krita/widgets/kis_scratch_pad.cpp
5 files changed in total