From 329272ea9e30492d348580e22702070702cf49b7 Mon Sep 17 00:00:00 2001 From: remi durand Date: Thu, 10 Feb 2022 14:24:23 +0100 Subject: [PATCH] fix typos --- src/libslic3r/Print.cpp | 2 +- src/slic3r/Utils/PresetUpdater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index ac3488163..b6ebceaa1 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -2327,7 +2327,7 @@ void Print::_extrude_brim_from_tree(std::vector>& loops, c print_me_first->append(ExtrusionEntitiesPtr{ children }); } } - assert(print_me_first.size() > 0); + assert(print_me_first->entities().size() > 0); } }; extrude_ptr = &extrude; diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index 4b555c5fc..bbf007172 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -281,7 +281,7 @@ void PresetUpdater::priv::sync_version() const boost::property_tree::read_json(json_stream, root); bool i_am_pre = false; //at least two number, use '.' as separator. can be followed by -Az23 for prereleased and +Az42 for metadata - std::regex matcher("[0-9]+\.[0-9]+(\.[0-9]+)*(-[A-Za-z0-9]+)?(\\+[A-Za-z0-9]+)?"); + std::regex matcher("[0-9]+\\.[0-9]+(\\.[0-9]+)*(-[A-Za-z0-9]+)?(\\+[A-Za-z0-9]+)?"); Semver current_version(SLIC3R_VERSION_FULL); Semver best_pre(1,0,0,0);