Remove old Coin code <=3

ubuntu 22.04 use libcoin v 4. https://launchpad.net/ubuntu/jammy/+package/libcoin-dev
This commit is contained in:
Andrea
2025-03-28 18:34:11 +01:00
committed by Benjamin Nauck
parent db8b58f73e
commit 2f5f8f32e7
5 changed files with 0 additions and 78 deletions

View File

@@ -248,15 +248,8 @@ void ViewProviderAnnotation::updateData(const App::Property* prop)
const char* cs = line.c_str();
if (line.empty())
cs = " "; // empty lines make coin crash, we use a space instead
#if (COIN_MAJOR_VERSION <= 3)
QByteArray latin1str;
latin1str = (QString::fromUtf8(cs)).toLatin1();
pLabel->string.set1Value(index, SbString(latin1str.constData()));
pLabel3d->string.set1Value(index, SbString(latin1str.constData()));
#else
pLabel->string.set1Value(index, SbString(cs));
pLabel3d->string.set1Value(index, SbString(cs));
#endif
index++;
}
}