浏览代码

Fix ctkColorPickerButton build error

Replace undeclared pixmapColor with ctkColorPickerButton Color member.
Benjamin BENEY 10 年之前
父节点
当前提交
48454f4bff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/Widgets/ctkColorPickerButton.cpp

+ 1 - 1
Libs/Widgets/ctkColorPickerButton.cpp

@@ -83,7 +83,7 @@ void ctkColorPickerButtonPrivate::computeIcon()
   QPainter p(&pix);
   QPainter p(&pix);
   p.setPen(QPen(Qt::gray));
   p.setPen(QPen(Qt::gray));
   p.setBrush(this->Color.isValid() ?
   p.setBrush(this->Color.isValid() ?
-    pixmapColor : QBrush(Qt::BrushStyle::NoBrush));
+    this->Color : QBrush(Qt::BrushStyle::NoBrush));
   p.drawRect(2, 2, pix.width() - 5, pix.height() - 5);
   p.drawRect(2, 2, pix.width() - 5, pix.height() - 5);
 
 
   this->Icon = QIcon(pix);
   this->Icon = QIcon(pix);