Revision 7d412c7...

Go back to digest for 1st December 2013

Bug Fixes in Office

Dmitry Kazakov committed changes in [calligra] /image:

Fix Transorm Worker to shrink device bounds when doing scale-down

When doing a scale-down a great portion of the image becomes filled
with the default pixel. If the default pixel of a paint device is not
fully transparent, then the exactBounds() will not shrink automatically.
That is why we need to purge() all the default tiles of the paint device
here.

Note: the Crop visitor needs *not* the same stuff, since
KisPaintDevice::crop() calls KisDataManager::setExtent() which
explicitly drops all the tiles outside of the requested area.

Special thanks to Boud, who has found the real cause of the bug!

File Changes

Modified 4 files
  • /image
  •   krita/kis_paint_device.cc
  •   krita/kis_paint_device.h
  •   krita/kis_transform_worker.cc
  •   krita/tiles3/kis_tiled_data_manager.cc
4 files changed in total