mirror of
https://github.com/leozide/leocad
synced 2024-12-27 21:58:37 +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))
|
||||
int CameraNumber = CameraName.midRef(Prefix.size()).toInt(&Ok);
|
||||
#else
|
||||
int CameraNumber = CameraName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||
int CameraNumber = CameraName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||
#endif
|
||||
|
||||
if (Ok && CameraNumber > MaxCameraNumber)
|
||||
|
|
|
@ -84,7 +84,7 @@ void lcLight::CreateName(const lcArray<lcLight*>& Lights)
|
|||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||
int LightNumber = LightName.midRef(Prefix.size()).toInt(&Ok);
|
||||
#else
|
||||
int LightNumber = LightName.midRef((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||
int LightNumber = LightName.mid((int)strlen(Prefix.latin1())).toInt(&Ok);
|
||||
#endif
|
||||
|
||||
if (Ok && LightNumber > MaxLightNumber)
|
||||
|
|
Loading…
Reference in a new issue