~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to src/ui/forms/qg_cadtoolbarselect.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-12-17 20:08:57 UTC
  • mfrom: (0.2.4)
  • Revision ID: package-import@ubuntu.com-20111217200857-r9wmynaloj230qm1
Tags: 1.0.0+nolibs-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "qg_cadtoolbarselect.h"
27
27
 
28
28
#include "qg_cadtoolbar.h"
 
29
#include "rs_actionselect.h"
29
30
 
30
31
/*
31
32
 *  Constructs a QG_CadToolBarSelect as a child of 'parent', with the
160
161
}
161
162
 
162
163
void QG_CadToolBarSelect::runNextAction() {
 
164
    if(selectAction->rtti() == RS2::ActionSelect){
 
165
            //refuse to run next action if no entity is selected, to avoid segfault by action upon empty selection
 
166
            //issue#235
 
167
        if( static_cast<RS_ActionSelect*>(selectAction)->countSelected()==0) return;
 
168
    }
163
169
    if (selectAction!=NULL) {
164
170
        selectAction->finish();
165
171
        selectAction = NULL;