Index: /trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp	(revision 88498)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.cpp	(revision 88499)
@@ -592,5 +592,5 @@
 void UIHelpViewer::mouseReleaseEvent(QMouseEvent *pEvent)
 {
-    // bool fOverlayMode = m_fOverlayMode;
+    bool fOverlayMode = m_fOverlayMode;
     clearOverlay();
 
@@ -608,6 +608,6 @@
     QIWithRetranslateUI<QTextBrowser>::mouseReleaseEvent(pEvent);
 
-    // if (!fOverlayMode)
-    //     loadImageAtPosition(pEvent->globalPos());
+    if (!fOverlayMode)
+        loadImageAtPosition(pEvent->globalPos());
 }
 
@@ -660,34 +660,34 @@
         painter.fillRect(fillRect, Qt::white);
         painter.drawPixmap(imageRect, newPixmap, newPixmap.rect());
-     }
-    // if (m_pOverlayLabel)
-    // {
-    //     if (m_fOverlayMode)
-    //     {
-    //         /* Scale the image to 1:1 as long as it fits into avaible space (minus some margins and scrollbar sizes): */
-    //         int vWidth = 0;
-    //         if (verticalScrollBar() && verticalScrollBar()->isVisible())
-    //             vWidth = verticalScrollBar()->width();
-    //         int hMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) +
-    //             qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) + vWidth;
-
-    //         int hHeight = 0;
-    //         if (horizontalScrollBar() && horizontalScrollBar()->isVisible())
-    //             hHeight = horizontalScrollBar()->height();
-    //         int vMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) +
-    //             qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin) + hHeight;
-
-    //         QSize size(qMin(width() - hMargin, m_overlayPixmap.width()),
-    //                     qMin(height() - vMargin, m_overlayPixmap.height()));
-    //         m_pOverlayLabel->setPixmap(m_overlayPixmap.scaled(size,  Qt::KeepAspectRatio, Qt::SmoothTransformation));
-    //         /* Center the label: */
-    //         int x = 0.5 * (width() - vWidth - m_pOverlayLabel->width());
-    //         int y = 0.5 * (height() - hHeight - m_pOverlayLabel->height());
-    //         m_pOverlayLabel->move(x, y);
-    //         m_pOverlayLabel->show();
-    //     }
-    //     else
-    //         m_pOverlayLabel->hide();
-    // }
+    }
+    if (m_pOverlayLabel)
+    {
+        if (m_fOverlayMode)
+        {
+            /* Scale the image to 1:1 as long as it fits into avaible space (minus some margins and scrollbar sizes): */
+            int vWidth = 0;
+            if (verticalScrollBar() && verticalScrollBar()->isVisible())
+                vWidth = verticalScrollBar()->width();
+            int hMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) +
+                qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) + vWidth;
+
+            int hHeight = 0;
+            if (horizontalScrollBar() && horizontalScrollBar()->isVisible())
+                hHeight = horizontalScrollBar()->height();
+            int vMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) +
+                qApp->style()->pixelMetric(QStyle::PM_LayoutBottomMargin) + hHeight;
+
+            QSize size(qMin(width() - hMargin, m_overlayPixmap.width()),
+                       qMin(height() - vMargin, m_overlayPixmap.height()));
+            m_pOverlayLabel->setPixmap(m_overlayPixmap.scaled(size,  Qt::KeepAspectRatio, Qt::SmoothTransformation));
+            /* Center the label: */
+            int x = 0.5 * (width() - vWidth - m_pOverlayLabel->width());
+            int y = 0.5 * (height() - hHeight - m_pOverlayLabel->height());
+            m_pOverlayLabel->move(x, y);
+            m_pOverlayLabel->show();
+        }
+        else
+            m_pOverlayLabel->hide();
+    }
 }
 
