summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/filltool.cpp5
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
@@ -38,2 +38,7 @@ 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();