Skip to content

Commit

Permalink
Update GuiApplicationManager10.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed May 4, 2021
1 parent c3d99b7 commit f9f0f50
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Gui/GuiApplicationManager10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ CLANG_DIAG_OFF(uninitialized)
CLANG_DIAG_ON(deprecated)
CLANG_DIAG_ON(uninitialized)

#ifdef DEBUG
#include "Global/FloatingPointExceptions.h"
#endif

#include "Engine/LibraryBinary.h"
#include "Engine/CreateNodeArgs.h"
#include "Engine/Settings.h"
Expand Down Expand Up @@ -289,7 +293,14 @@ void
GuiApplicationManager::initializeQApp(int &argc,
char** argv)
{
QApplication* app = new Application(this, argc, argv);
QApplication* app;
{
#ifdef DEBUG
boost_adaptbx::floating_point::exception_trapping trap(boost_adaptbx::floating_point::exception_trapping::division_by_zero |
boost_adaptbx::floating_point::exception_trapping::overflow);
#endif
app = new Application(this, argc, argv);
}
QDesktopWidget* desktop = app->desktop();
int dpiX = desktop->logicalDpiX();
int dpiY = desktop->logicalDpiY();
Expand Down

0 comments on commit f9f0f50

Please sign in to comment.