Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /trunk/selectField.cpp [r44] .. [r45] Maximize Restore

  Switch to side-by-side view

--- a/trunk/selectField.cpp
+++ b/trunk/selectField.cpp
@@ -134,6 +134,7 @@
 
 void SelectField::mousePressEvent( QMouseEvent *event ) {
     if( event->button() == Qt::LeftButton ) {
+        this->setFocus(); // only a simple means to remove focus from textedits ( and thus allow image paste in the EnlargerDialog )
         int px  = event->pos().x(),        py = event->pos().y();
         int sx0 = selectBox.x(),           sy0 = selectBox.y();
         int sx1 = sx0 + selectBox.width(), sy1 = sy0 + selectBox.height();
@@ -237,6 +238,7 @@
 // ---- ------------- ----
 
 void SelectField::UpdateSizeAndZoom( void ) {
+
     float newW,newH;
     zoom = MAXHEIGHT / ( baseClipY1 - baseClipY0 );
     newH = MAXHEIGHT;