From 4b28f45cd1f6a72f41219786c7fb411523a6d622 Mon Sep 17 00:00:00 2001 From: leseb Date: Thu, 14 Nov 2002 19:34:55 +0000 Subject: Should fix bug 0000448 --- (limited to 'noncore/graphics/drawpad') diff --git a/noncore/graphics/drawpad/filltool.cpp b/noncore/graphics/drawpad/filltool.cpp index 2a39d04..b47aa60 100644 --- a/noncore/graphics/drawpad/filltool.cpp +++ b/noncore/graphics/drawpad/filltool.cpp @@ -36,6 +36,11 @@ void FillTool::mousePressEvent(QMouseEvent* e) int y = e->y(); m_image = m_pDrawPadCanvas->currentPage()->pixmap()->convertToImage(); + + if (m_image.depth() <= 8) { + m_image = m_image.convertDepth(32); + } + m_fillRgb = m_pDrawPad->brush().color().rgb(); m_oldRgb = m_image.pixel(x, y); -- cgit v0.9.0.2