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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user