From 100760e219cfe6e0840902ad072993e06c74f532 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 25 Jun 2024 23:41:35 +0200 Subject: [PATCH] Fixed progress description --- src/db/db/dbAsIfFlatRegion.cc | 1 + src/db/db/dbDeepRegion.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/db/db/dbAsIfFlatRegion.cc b/src/db/db/dbAsIfFlatRegion.cc index d97e764ff..a62894e47 100644 --- a/src/db/db/dbAsIfFlatRegion.cc +++ b/src/db/db/dbAsIfFlatRegion.cc @@ -1443,6 +1443,7 @@ AsIfFlatRegion::sized_inside (const Region &inside, bool outside, coord_type dx, // indicate chunk in the progress description proc.set_description (proc.description (&op) + tl::sprintf (tl::to_string (tr (" (steps %d..%d)")), steps_from + 1, steps_from + steps_chunk + 1)); + steps_from += steps_chunk; std::vector > others; others.push_back (inside_polygons); diff --git a/src/db/db/dbDeepRegion.cc b/src/db/db/dbDeepRegion.cc index 076e9f46b..f4d6466a1 100644 --- a/src/db/db/dbDeepRegion.cc +++ b/src/db/db/dbDeepRegion.cc @@ -1853,6 +1853,7 @@ DeepRegion::sized_inside (const Region &inside, bool outside, coord_type dx, coo // indicate chunk in the progress description proc.set_description (proc.description (&op) + tl::sprintf (tl::to_string (tr (" (steps %d..%d)")), steps_from + 1, steps_from + steps_chunk + 1)); + steps_from += steps_chunk; proc.run (&op, prev.get () ? prev->deep_layer ().layer () : polygons.layer (), inside_polygons.layer (), res->deep_layer ().layer ());