From dd2e829e875d23e73e917b250524385a84943839 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 6 Jul 2015 11:16:59 +0300 Subject: [PATCH] Issue #709: Avoid duplication of label --- src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp | 8 ++++---- src/SketchPlugin/plugin-Sketch.xml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 9b0222ca5..770882294 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -73,12 +73,12 @@ ModuleBase_WidgetMultiSelector::ModuleBase_WidgetMultiSelector(QWidget* theParen aMainLay->addWidget(aListLabel, 1, 0); // if the xml definition contains one type, an information label should be shown near to the latest if (aShapeTypes.size() == 1) { - QString aLabelText = QString::fromStdString(theData->widgetLabel()); QString aLabelIcon = QString::fromStdString(theData->widgetIcon()); - QLabel* aSelectedLabel = new QLabel(aLabelText, this); - if (!aLabelIcon.isEmpty()) + if (!aLabelIcon.isEmpty()) { + QLabel* aSelectedLabel = new QLabel("", this); aSelectedLabel->setPixmap(QPixmap(aLabelIcon)); - aMainLay->addWidget(aSelectedLabel, 1, 1); + aMainLay->addWidget(aSelectedLabel, 1, 1); + } aMainLay->setColumnStretch(2, 1); } diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index c822cf0d7..016e33110 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -248,7 +248,7 @@ @@ -261,7 +261,7 @@ title="Translation" icon=":icons/translate.png" tooltip="Translation"> @@ -290,7 +290,7 @@ title="Rotation" icon=":icons/rotate.png" tooltip="Rotation"> -- 2.39.2