diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
index 95b5b458de..4e90b0007b 100644
--- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
+++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
@@ -6493,6 +6493,16 @@ void ViewProviderSketch::UpdateSolverInformation()
.arg(tr("(click to select)"))
.arg(appendRedundantMsg(getSketchObject()->getLastRedundant())));
}
+
+ QString partiallyRedundantString;
+
+ if(hasPartiallyRedundant) {
+ partiallyRedundantString = QString::fromLatin1("
%1%2
%3
")
+ .arg(tr("Sketch contains partially redundant constraints "))
+ .arg(tr("(click to select)"))
+ .arg(appendPartiallyRedundantMsg(getSketchObject()->getLastPartiallyRedundant()));
+ }
+
if (getSketchObject()->getLastSolverStatus() == 0) {
if (dofs == 0) {
// color the sketch as fully constrained if it has geometry (other than the axes)
@@ -6500,31 +6510,19 @@ void ViewProviderSketch::UpdateSolverInformation()
edit->FullyConstrained = true;
if (!hasRedundancies) {
- signalSetUp(QString::fromLatin1("%1").arg(tr("Fully constrained sketch")));
+ signalSetUp(QString::fromLatin1("%1 %2").arg(tr("Fully constrained sketch")).arg(partiallyRedundantString));
}
}
else if (!hasRedundancies) {
QString infoString;
if (dofs == 1)
- infoString = tr("Under-constrained sketch with 1 degree of freedom. %1")
- .arg(hasPartiallyRedundant?
- QString::fromLatin1("
%1%2
%3
")
- .arg(tr("Sketch contains partially redundant constraints "))
- .arg(tr("(click to select)"))
- .arg(appendPartiallyRedundantMsg(getSketchObject()->getLastPartiallyRedundant()))
- : QString());
+ signalSetUp(tr("Under-constrained sketch with 1 degree of freedom. %1")
+ .arg(partiallyRedundantString));
else
- infoString = tr("Under-constrained sketch with %1 degrees of freedom. %2")
+ signalSetUp(tr("Under-constrained sketch with %1 degrees of freedom. %2")
.arg(dofs)
- .arg(hasPartiallyRedundant?
- QString::fromLatin1("
%1%2
%3
")
- .arg(tr("Sketch contains partially redundant constraints "))
- .arg(tr("(click to select)"))
- .arg(appendPartiallyRedundantMsg(getSketchObject()->getLastPartiallyRedundant()))
- : QString());
-
- signalSetUp(infoString);
+ .arg(partiallyRedundantString));
}
signalSolved(QString::fromLatin1("%1").arg(tr("Solved in %1 sec").arg(getSketchObject()->getLastSolveTime())));