fix color model pick mode
This commit is contained in:
parent
7e404d1069
commit
909c04ab5b
2 changed files with 4 additions and 2 deletions
|
@ -565,7 +565,7 @@ void FingerTool::pick(const TPointD &pos) {
|
|||
|
||||
int styleId =
|
||||
picker.pickStyleId(TScale(1.0 / subsampling) * pos + TPointD(-0.5, -0.5),
|
||||
getPixelSize() * getPixelSize(), modeValue);
|
||||
getPixelSize() * getPixelSize(), 1.0, modeValue);
|
||||
|
||||
if (styleId < 0) return;
|
||||
|
||||
|
|
|
@ -303,11 +303,13 @@ void ColorModelViewer::pick(const QPoint &p) {
|
|||
TPointD(viewP.x() - m_imageViewer->width() / 2,
|
||||
-viewP.y() + m_imageViewer->height() / 2);
|
||||
|
||||
double scale2 = m_imageViewer->getViewAff().det();
|
||||
/*---
|
||||
カレントToolに合わせてPickモードを変更
|
||||
0=Area, 1=Line, 2=Line&Areas(default)
|
||||
---*/
|
||||
int styleIndex = picker.pickStyleId(pos + TPointD(-0.5, -0.5), 1, m_mode);
|
||||
int styleIndex =
|
||||
picker.pickStyleId(pos + TPointD(-0.5, -0.5), 1, scale2, m_mode);
|
||||
|
||||
if (styleIndex < 0) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue