Commit db6eac55 authored by Matthias Möller's avatar Matthias Möller
Browse files

-fix: crash after clearing the scene

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14728 383ad7c9-94d9-4d36-a494-682f7c89f535
parent da5f49d0
...@@ -45,8 +45,6 @@ ...@@ -45,8 +45,6 @@
#include <OpenFlipper/BasePlugin/PluginFunctions.hh> #include <OpenFlipper/BasePlugin/PluginFunctions.hh>
#include <MeshTools/MeshFunctions.hh>
#include <MeshTools/MeshInfoT.hh>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
RulerPlugin::RulerPlugin() RulerPlugin::RulerPlugin()
: :
...@@ -304,4 +302,15 @@ void RulerPlugin::slotPickModeChanged(const std::string& _mode) ...@@ -304,4 +302,15 @@ void RulerPlugin::slotPickModeChanged(const std::string& _mode)
buttonAction_->setChecked(_mode == pickModeName_); buttonAction_->setChecked(_mode == pickModeName_);
} }
//------------------------------------------------------------------------------
void RulerPlugin::slotAllCleared()
{
hitStage_ = firstClick;
lineDrag_ = -1;
lineNode_ = 0;
textNode_ = 0;
textTransformNode_ = 0;
}
Q_EXPORT_PLUGIN2( rulerPlugin , RulerPlugin ); Q_EXPORT_PLUGIN2( rulerPlugin , RulerPlugin );
...@@ -92,12 +92,12 @@ public: ...@@ -92,12 +92,12 @@ public:
private: private:
void reset();
void enableDragMode(const int _point); void enableDragMode(const int _point);
void disableDragMode(); void disableDragMode();
void reset();
QAction *buttonAction_; QAction *buttonAction_;
...@@ -135,6 +135,7 @@ private slots: ...@@ -135,6 +135,7 @@ private slots:
void slotChangePickMode(); void slotChangePickMode();
void slotAllCleared();
public slots: public slots:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment