Add WCSData::calculateBounds
This commit is contained in:
@@ -428,7 +428,7 @@ void ImageWidget::dropEvent(QDropEvent *event)
|
||||
|
||||
void ImageWidget::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
if(m_thumbnailCount && event->button() == Qt::LeftButton && event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
|
||||
if(m_showThumbnails && event->button() == Qt::LeftButton && event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
|
||||
m_selecting = true;
|
||||
|
||||
if(m_selecting)
|
||||
@@ -448,7 +448,7 @@ void ImageWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
else
|
||||
event->ignore();
|
||||
|
||||
if(m_rawImage)
|
||||
if(!m_showThumbnails && m_rawImage)
|
||||
{
|
||||
float dx = m_dx;
|
||||
float dy = m_dy;
|
||||
@@ -465,7 +465,7 @@ void ImageWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
SkyPoint sky;
|
||||
if(m_wcs)
|
||||
{
|
||||
sky = m_wcs->pixelToWorld(QPointF(pix.x(), pix.y()));
|
||||
m_wcs->pixelToWorld(QPointF(pix.x(), pix.y()), sky);
|
||||
}
|
||||
|
||||
if(m_rawImage->pixel(pix.x(), pix.y(), rgb))
|
||||
|
||||
Reference in New Issue
Block a user