@@ -71,30 +71,30 @@ ColoringAction::ColoringAction(QObject* parent, const QString& title) :
7171 _constantColorAction.setEnabled (currentIndex == 0 );
7272
7373 const auto currentColorDataset = getCurrentColorDataset ();
74- if (_currentColorPointsDataset. isValid ())
75- {
74+
75+ if (_currentColorPointsDataset. isValid ()) {
7676 disconnect (&_currentColorPointsDataset, &Dataset<Points>::dataDimensionsChanged, this , nullptr );
7777 }
78+
7879 _currentColorPointsDataset = Dataset<Points>();
79- if (currentColorDataset.isValid ()) {
80- const auto currentColorDatasetTypeIsPointType = currentColorDataset->getDataType () == PointType;
8180
82- if (currentColorDatasetTypeIsPointType) {
81+ if (currentColorDataset.isValid ()) {
82+ if (currentColorDataset->getDataType () == PointType) {
8383 _currentColorPointsDataset = currentColorDataset.get <Points>();
84+
8485 if (_currentColorPointsDataset.isValid ()) {
8586 connect (&_currentColorPointsDataset, &Dataset<Points>::dataDimensionsChanged, this , [this ]() {
86- if (_currentColorPointsDataset.isValid ())
87- {
87+ if (_currentColorPointsDataset.isValid ()) {
8888 _dimensionAction.setPointsDataset (_currentColorPointsDataset);
8989 updateScatterPlotWidgetColors ();
9090 }
91- });
91+ });
92+
9293 _dimensionAction.setPointsDataset (_currentColorPointsDataset);
9394 }
9495 else {
9596 _dimensionAction.setPointsDataset (Dataset<Points>());
9697 }
97-
9898 }
9999 else {
100100 _dimensionAction.setPointsDataset (Dataset<Points>());
0 commit comments