diff --git a/common/camera.cpp b/common/camera.cpp index 05e4b8ea..4b41b6b7 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -107,7 +107,7 @@ void lcCamera::CreateName(const lcArray& 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) diff --git a/common/light.cpp b/common/light.cpp index 66c7b012..a98a83c8 100644 --- a/common/light.cpp +++ b/common/light.cpp @@ -84,7 +84,7 @@ void lcLight::CreateName(const lcArray& 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)