We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 392689e commit 72b9b0fCopy full SHA for 72b9b0f
src/guiFormSpecMenu.cpp
@@ -410,8 +410,8 @@ void GUIFormSpecMenu::parseImage(parserData* data,std::string element) {
410
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
411
412
v2s32 geom;
413
- geom.X = stoi(v_geom[0]) * (float)imgsize.X;
414
- geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
+ geom.X = stof(v_geom[0]) * (float)imgsize.X;
+ geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
415
416
if(data->bp_set != 2)
417
errorstream<<"WARNING: invalid use of image without a size[] element"<<std::endl;
0 commit comments