Skip to content

Commit

Permalink
label: Add warning for invalid rotate property
Browse files Browse the repository at this point in the history
  • Loading branch information
hramrach committed Sep 8, 2024
1 parent 1fa8019 commit 5b1826d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ALabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st

if (config_["rotate"].isUInt()) {
rotate = config["rotate"].asUInt();
if (not (rotate == 0 || rotate == 90 || rotate == 180 || rotate == 270))
spdlog::warn("'rotate' is only supported in 90 degree increments {} is not valid.", rotate);
label_.set_angle(rotate);
}

Expand Down

0 comments on commit 5b1826d

Please sign in to comment.