Skip to content

Commit

Permalink
ticket:4217 Fixed the documentation browser pixel size issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 15, 2017
1 parent a6f9378 commit a3afbd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Modeling/DocumentationWidget.cpp
Expand Up @@ -1138,7 +1138,8 @@ void DocumentationViewer::createActions()
void DocumentationViewer::resetZoom()
{
QWidget *pScreenWidget = QApplication::desktop()->screen();
setZoomFactor(pScreenWidget->logicalDpiX() / 96);
qreal zoomFactor = pScreenWidget->logicalDpiX() / 96;
setZoomFactor(zoomFactor < 1 ? 1 : zoomFactor);
}

/*!
Expand Down

0 comments on commit a3afbd6

Please sign in to comment.