We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc25b7 commit 5a26e46Copy full SHA for 5a26e46
src/gui/guiFormSpecMenu.cpp
@@ -668,15 +668,16 @@ void GUIFormSpecMenu::parseBackground(parserData* data, const std::string &eleme
668
geom.X = stof(v_geom[0]) * spacing.X;
669
geom.Y = stof(v_geom[1]) * spacing.Y;
670
671
- if (!data->explicit_size)
672
- warningstream<<"invalid use of background without a size[] element"<<std::endl;
673
-
674
bool clip = false;
675
if (parts.size() == 4 && is_yes(parts[3])) {
676
pos.X = stoi(v_pos[0]); //acts as offset
677
pos.Y = stoi(v_pos[1]); //acts as offset
678
clip = true;
679
}
+
+ if (!data->explicit_size && !clip)
+ warningstream << "invalid use of unclipped background without a size[] element" << std::endl;
680
681
m_backgrounds.emplace_back(name, pos, geom, clip);
682
683
return;
0 commit comments