-rw-r--r-- | libqtaux/qcolordialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libqtaux/qcolordialog.cpp b/libqtaux/qcolordialog.cpp index ccef0ad..830fef6 100644 --- a/libqtaux/qcolordialog.cpp +++ b/libqtaux/qcolordialog.cpp | |||
@@ -540,7 +540,7 @@ QRgb QColorDialog::customColor( int i ) | |||
540 | if ( i < 0 || i >= customCount() ) { | 540 | if ( i < 0 || i >= customCount() ) { |
541 | #ifdef CHECK_RANGE | 541 | #ifdef CHECK_RANGE |
542 | qWarning( "QColorDialog::customColor() index %d out of range", i ); | 542 | qWarning( "QColorDialog::customColor() index %d out of range", i ); |
543 | #endif | 543 | #endif |
544 | i = 0; | 544 | i = 0; |
545 | } | 545 | } |
546 | return cusrgb[i]; | 546 | return cusrgb[i]; |
@@ -555,7 +555,7 @@ void QColorDialog::setCustomColor( int i, QRgb c ) | |||
555 | if ( i < 0 || i >= customCount() ) { | 555 | if ( i < 0 || i >= customCount() ) { |
556 | #ifdef CHECK_RANGE | 556 | #ifdef CHECK_RANGE |
557 | qWarning( "QColorDialog::customColor() index %d out of range", i ); | 557 | qWarning( "QColorDialog::customColor() index %d out of range", i ); |
558 | #endif | 558 | #endif |
559 | return; | 559 | return; |
560 | } | 560 | } |
561 | cusrgb[i] = c; | 561 | cusrgb[i] = c; |
@@ -1103,6 +1103,8 @@ void QColorShowLabel::mouseMoveEvent( QMouseEvent *e ) | |||
1103 | mousePressed = FALSE; | 1103 | mousePressed = FALSE; |
1104 | drg->dragCopy(); | 1104 | drg->dragCopy(); |
1105 | } | 1105 | } |
1106 | #else | ||
1107 | Q_UNUSED( e ) | ||
1106 | #endif | 1108 | #endif |
1107 | } | 1109 | } |
1108 | 1110 | ||
@@ -1629,4 +1631,4 @@ int QColorDialog::selectedAlpha() const | |||
1629 | } | 1631 | } |
1630 | 1632 | ||
1631 | 1633 | ||
1632 | #include "qcolordialog.moc" \ No newline at end of file | 1634 | #include "qcolordialog.moc" |