From koffice-devel Mon Jul 20 16:41:42 2009 From: "Casper Boemann" Date: Mon, 20 Jul 2009 16:41:42 +0000 To: koffice-devel Subject: Re: Review Request: Fixed bugs in thumbnail creation mechanism Message-Id: <20090720164142.7368.37009 () localhost> X-MARC-Message: https://marc.info/?l=koffice-devel&m=124810814127431 ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviewboard.kde.org/r/990/#review1686 ----------------------------------------------------------- Ship it! - Casper On 2009-07-12 07:36:09, Dmitry Kazakov wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviewboard.kde.org/r/990/ > ----------------------------------------------------------- > > (Updated 2009-07-12 07:36:09) > > > Review request for KOffice. > > > Summary > ------- > > There is a bug in thumbnails in filters dialog. If you open it and look at 'Invert' thumbnail thoroughly, you'll see that it's thumb is quite higher than others. That is so because filters applied to thumbs inside constant rect (100,100) [1]. 'Invert' filter inverts defaultPixel and after that KisPaintDevice::exactBounds won't work well, because there is no more defaultPixel in thumbnail. This bug is fixed in this patch. > > Alongside with this bug, there is a bug in KisPaintDevice::exactBounds. In cycles of calculating right and bottom bounds, iterator reads one column/row more than needed every time(!) [2]. This bug is not seen much in old tile engine, as reading of unallocated areas was not causing any changes in internals of engine. But in new one extent is extended by one tile to the right and bottom every time exactBounds() called. This is fixed too. > > And the last chunk - fix in KisPaintDevice::createThumbnailDevice(). Thumbnail created only for actual image - not it's extent. > > > [1] ui/kis_filters_model.cc:170 > [2] image/kis_paint_device.cc:251 and image/kis_paint_device.cc:287 > > > Diffs > ----- > > trunk/koffice/krita/image/kis_paint_device.cc 995043 > trunk/koffice/krita/ui/kis_filters_model.cc 995043 > > Diff: http://reviewboard.kde.org/r/990/diff > > > Testing > ------- > > > Thanks, > > Dmitry > > _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel