Bug #448
WSvgImage does not clear when PaintFlag != PaintUpdate
| Status: | Closed | Start: | 07/22/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | Koen Deforche | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
This should likely occur in init() of WSvgImage since WPainter::begin states that it automatically clears the device.
I'm thinking:
if( !(paintFlags_ & PaintUpdate) )
{
shapes_.str(std::string());
}
History
Updated by Koen Deforche over 1 year ago
- Status changed from New to Resolved
- Assigned to set to Koen Deforche
I have fixed this for WSvgImage, WCanvasPaintDevice and WVmlImage, but this should also be done for WPdfImage and WRasteRimage.
Updated by Pieter Libin over 1 year ago
- Status changed from Resolved to Closed
Updated by Koen Deforche over 1 year ago
I have reverted this fix since it is annoying that you cannot use multiple WPainter's in row on a single paint device. So we have updated the documentation: WPainter::begin() does not clear the paint device, and instead WPaintedWidget::update() does.