summaryrefslogtreecommitdiffstats
path: root/config/qtcurveconfig.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-08-04 19:09:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-08-04 19:09:02 -0500
commit6213a065fe389c83eb5e9fdab42c95b3ff15c59d (patch)
treef1e0bb3b6f8eb162181bb55d57171048c65f7bfe /config/qtcurveconfig.cpp
parentbb831be07ccc273b02017beeee1a73d7fd00ba47 (diff)
downloadtde-style-qtcurve-6213a065fe389c83eb5e9fdab42c95b3ff15c59d.tar.gz
tde-style-qtcurve-6213a065fe389c83eb5e9fdab42c95b3ff15c59d.zip
Clean up a couple of build warnings
Diffstat (limited to 'config/qtcurveconfig.cpp')
-rw-r--r--config/qtcurveconfig.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/qtcurveconfig.cpp b/config/qtcurveconfig.cpp
index 4eccf69..64ffcae 100644
--- a/config/qtcurveconfig.cpp
+++ b/config/qtcurveconfig.cpp
@@ -1137,15 +1137,17 @@ void QtCurveConfig::addGradStop()
double pos(stopPosition->value()/100.0),
val(stopValue->value()/100.0);
- for(; it!=end; ++it)
- if(equal(pos, (*it).pos))
- if(equal(val, (*it).val))
+ for(; it!=end; ++it) {
+ if(equal(pos, (*it).pos)) {
+ if(equal(val, (*it).val)) {
return;
- else
- {
+ }
+ else {
(*cg).second.stops.erase(it);
break;
}
+ }
+ }
unsigned int b4=(*cg).second.stops.size();
(*cg).second.stops.insert(GradientStop(pos, val));