-rw-r--r-- | noncore/graphics/drawpad/filltool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -37,4 +37,9 @@ void FillTool::mousePressEvent(QMouseEvent* e) 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); |