Sketcher: Remove not-needed print statements

This commit is contained in:
Kacper Donat
2025-04-21 21:30:02 +02:00
committed by Chris Hennes
parent 4428ba3bf2
commit 9aad08a646
2 changed files with 1 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ void EditDatumDialog::accepted()
std::string constraintName = ui_ins_datum->name->text().trimmed().toStdString();
std::string currConstraintName = sketch->Constraints[ConstrNbr]->Name;
printf("datum");
if (constraintName != currConstraintName) {
if (!SketcherGui::checkConstraintName(sketch, constraintName)) {
constraintName = currConstraintName;

View File

@@ -1223,7 +1223,6 @@ void TaskSketcherConstraints::onListWidgetConstraintsItemChanged(QListWidgetItem
// b) that the text in the widget item, basename, is not ""
// otherwise a checkbox change will trigger a rename on the first execution, bloating the
// constraint icons with the default constraint name "constraint1, constraint2"
printf("task");
if (newName != currConstraintName && !basename.empty()) {
if (!SketcherGui::checkConstraintName(sketch, newName)) {
newName = currConstraintName;