linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03789
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2477: more splitter pos checks
------------------------------------------------------------
revno: 2477
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Wed 2011-03-30 22:27:02 +0200
message:
more splitter pos checks
modified:
dwt/src/widgets/Splitter.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/src/widgets/Splitter.cpp'
--- dwt/src/widgets/Splitter.cpp 2011-03-30 20:13:51 +0000
+++ dwt/src/widgets/Splitter.cpp 2011-03-30 20:27:02 +0000
@@ -92,6 +92,8 @@
if(moving && mouseEvent.ButtonPressed == MouseEvent::LEFT) {
ClientCoordinate cc(mouseEvent.pos, getParent());
pos = (horizontal ? cc.y() : cc.x()) / getParent()->getMaxSize(this);
+ if(pos < 0.) pos = 0.;
+ if(pos > 1.) pos = 1.;
getParent()->onMove();
}