We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314a837 commit 7ccea02Copy full SHA for 7ccea02
core/src/mdichild.cpp
@@ -2851,9 +2851,11 @@ iALogger * MdiChild::getLogger()
2851
2852
bool MdiChild::IsVolumeDataLoaded() const
2853
{
2854
- return QString::compare(getFileInfo().suffix(), "STL", Qt::CaseInsensitive) == 0 &&
2855
- QString::compare(getFileInfo().suffix(), "FEM", Qt::CaseInsensitive) == 0 &&
2856
- imageData->GetExtent()[1] >= 0 && imageData->GetExtent()[3] >= 0 && imageData->GetExtent()[5] >= 0;
+ QString suffix = getFileInfo().suffix();
+ int * extent = imageData->GetExtent();
+ return QString::compare(suffix, "STL", Qt::CaseInsensitive) != 0 &&
2857
+ QString::compare(suffix, "FEM", Qt::CaseInsensitive) != 0 &&
2858
+ extent[1] >= 0 && extent[3] >= 0 && extent[5] >= 0;
2859
}
2860
2861
0 commit comments