aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 1b099e7..a6a76c3 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.32 2003/01/12 17:56:15 fluxgen Exp $ 25// $Id: Slit.cc,v 1.33 2003/01/12 23:52:37 fluxgen Exp $
26 26
27#include "Slit.hh" 27#include "Slit.hh"
28 28
@@ -654,7 +654,6 @@ void Slit::reconfigure() {
654 y = 0; 654 y = 0;
655 655
656 { 656 {
657 cerr<<"Clients: "<<clientList.size()<<endl;
658 SlitClients::iterator it = clientList.begin(); 657 SlitClients::iterator it = clientList.begin();
659 SlitClients::iterator it_end = clientList.end(); 658 SlitClients::iterator it_end = clientList.end();
660 for (; it != it_end; ++it) { 659 for (; it != it_end; ++it) {
@@ -831,6 +830,9 @@ void Slit::shutdown() {
831} 830}
832 831
833void Slit::cycleClientsUp() { 832void Slit::cycleClientsUp() {
833 if (clientList.size() < 2)
834 return;
835
834 // rotate client list up, ie the first goes last 836 // rotate client list up, ie the first goes last
835 SlitClients::iterator it = clientList.begin(); 837 SlitClients::iterator it = clientList.begin();
836 SlitClient *client = *it; 838 SlitClient *client = *it;
@@ -840,6 +842,9 @@ void Slit::cycleClientsUp() {
840} 842}
841 843
842void Slit::cycleClientsDown() { 844void Slit::cycleClientsDown() {
845 if (clientList.size() < 2)
846 return;
847
843 // rotate client list down, ie the last goes first 848 // rotate client list down, ie the last goes first
844 SlitClient *client = clientList.back(); 849 SlitClient *client = clientList.back();
845 clientList.remove(client); 850 clientList.remove(client);