mirror of
https://github.com/leozide/leocad
synced 2025-01-28 19:58:12 +01:00
Compile fix.
This commit is contained in:
parent
9a7e256c72
commit
581c4ce523
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ void lcCamera::CreateName(const lcArray<lcCamera*>& Cameras)
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||||
int CameraNumber = CameraName.midRef(Prefix.size()).toInt(&Ok);
|
int CameraNumber = CameraName.midRef(Prefix.size()).toInt(&Ok);
|
||||||
#else
|
#else
|
||||||
int CameraNumber = CameraName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
|
int CameraNumber = CameraName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (Ok && CameraNumber > MaxCameraNumber)
|
if (Ok && CameraNumber > MaxCameraNumber)
|
||||||
|
|
|
@ -84,7 +84,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||||
int LightNumber = LightName.midRef(Prefix.size()).toInt(&Ok);
|
int LightNumber = LightName.midRef(Prefix.size()).toInt(&Ok);
|
||||||
#else
|
#else
|
||||||
int LightNumber = LightName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
|
int LightNumber = LightName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (Ok && LightNumber > MaxLightNumber)
|
if (Ok && LightNumber > MaxLightNumber)
|
||||||
|
|
Loading…
Add table
Reference in a new issue