diff options
author | vaxerski <[email protected]> | 2022-08-09 18:15:37 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-09 18:15:37 +0200 |
commit | a6d4a4d5f309da08f4629bbdc8afa891cfcb7801 (patch) | |
tree | a588a70927cf5e332c19e37927d9e43df95ee698 /src | |
parent | e2f61e267e1aaabd78d0eaf0b31c2af66f9d1304 (diff) | |
download | Hyprland-a6d4a4d5f309da08f4629bbdc8afa891cfcb7801.tar.gz Hyprland-a6d4a4d5f309da08f4629bbdc8afa891cfcb7801.zip |
warn about incorrect bezier args
Diffstat (limited to 'src')
-rw-r--r-- | src/config/ConfigManager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 3b361ece..2d8a62ca 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -512,13 +512,24 @@ void CConfigManager::handleBezier(const std::string& command, const std::string& std::string bezierName = curitem; nextItem(); + if (curitem == "") + parseError = "too few arguments"; float p1x = std::stof(curitem); nextItem(); + if (curitem == "") + parseError = "too few arguments"; float p1y = std::stof(curitem); nextItem(); + if (curitem == "") + parseError = "too few arguments"; float p2x = std::stof(curitem); nextItem(); + if (curitem == "") + parseError = "too few arguments"; float p2y = std::stof(curitem); + nextItem(); + if (curitem != "") + parseError = "too many arguments"; g_pAnimationManager->addBezierWithName(bezierName, Vector2D(p1x, p1y), Vector2D(p2x, p2y)); } |