Commit ad682f0d authored by Deepak Rangarajan's avatar Deepak Rangarajan
Browse files

fix

parent 9935c47d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -589,9 +589,10 @@ template <> struct action<polygon> {

    std::vector<std::vector<double>> paths = {{}};
    if (std::holds_alternative<std::string>(curr_attr["paths"])) {
      auto paths_str = std::get<std::string>(curr_attr["paths"];
      auto paths_str = std::get<std::string>(curr_attr["paths"]);
      if (paths_str != UNDEFINED_STR)
        throw std::runtime_error("Error parsing polygon. paths = " + paths_str + " not recognized" );
        throw std::runtime_error("Error parsing polygon. paths = " + paths_str +
                                 " not recognized");
    } else {
      paths = std::get<std::vector<std::vector<double>>>(curr_attr["paths"]);
    }