diff --git a/src/Gui/SoDatumLabel.cpp b/src/Gui/SoDatumLabel.cpp index 928284e67f..ba39d4f4e0 100644 --- a/src/Gui/SoDatumLabel.cpp +++ b/src/Gui/SoDatumLabel.cpp @@ -965,7 +965,7 @@ void SoDatumLabel::generatePrimitives(SoAction * action) { // Initialisation check (needs something more sensible) prevents an infinite loop bug constexpr float floatEpsilon = std::numeric_limits::epsilon(); - if (this->imgHeight <= floatEpsilon | this->imgWidth <= floatEpsilon) { + if (this->imgHeight <= floatEpsilon || this->imgWidth <= floatEpsilon) { return; }