~pierre-parent-k/kicad/length-tunning

« back to all changes in this revision

Viewing changes to pcbnew/muonde.cpp

  • Committer: Pierre Parent
  • Date: 2014-04-12 10:27:26 UTC
  • Revision ID: pierre.parent@insa-rouen.fr-20140412102726-ovgealcqgmy260me
Litle bug fix when closing length tuning tool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
 
176
176
void Exit_trace_lentgh_tunning(EDA_DRAW_PANEL* Panel,  wxDC* DC )
177
177
{
178
 
  Panel->ReDraw(DC);
179
 
 if (length_tuning_state==1)
180
 
 {
181
 
   //We can't exitin state 1
182
 
   return;
183
 
 }
184
 
 
185
178
 //stop mouse capture
186
179
  Panel->SetMouseCapture( NULL, NULL );
187
 
 
 
180
  length_tuning_state=0;
 
181
  Panel->ReDraw(DC);
188
182
}
189
183
 
190
184
 #define ADJUST_SIZE 0.988
380
374
        }
381
375
      }
382
376
      previousbuffer=buffer;
383
 
      cout<<"previous "<<previouswidth<<endl;
384
377
      }
385
378
    
386
379
    }