~unity-team/nux/nux.dyn-casting

« back to all changes in this revision

Viewing changes to Nux/InputArea.cpp

  • Committer: Jason Smith
  • Date: 2011-03-17 15:48:52 UTC
  • Revision ID: jason.smith@canonical.com-20110317154852-awe8wl5kqux96xrh
fix crash when drag fails twice in a row

Show diffs side-by-side

added added

removed removed

Lines of Context:
792
792
    return 0;
793
793
  }
794
794
  
 
795
  void InputArea::InnerDndSourceDragFinished (DndAction result, void *data) 
 
796
  { 
 
797
    InputArea *self = static_cast<InputArea *> (data);
 
798
    self->DndSourceDragFinished (result);
 
799
  }
 
800
  
795
801
  void InputArea::DndSourceDragFinished (DndAction result)
796
802
  {
797
803
  
806
812
    funcs.get_data_for_type = &InputArea::InnerDndSourceGetDataForType;
807
813
    funcs.drag_finished = &InputArea::InnerDndSourceDragFinished;
808
814
    
 
815
    DndSourceDragBegin ();
809
816
    GetWindow ().StartDndDrag (funcs, this);
810
 
    DndSourceDragBegin ();
811
817
  }
812
818
#endif
813
819