Gui: Fix operator mistake in previous c++constant refactoring

This commit is contained in:
Benjamin Nauck
2025-04-07 08:28:02 +02:00
committed by Kacper Donat
parent 7013f913b6
commit acd40ce725

View File

@@ -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<float>::epsilon();
if (this->imgHeight <= floatEpsilon | this->imgWidth <= floatEpsilon) {
if (this->imgHeight <= floatEpsilon || this->imgWidth <= floatEpsilon) {
return;
}