Some of the plugins don't work with the dynamic variables so the feature is now disabled for them.

This commit is contained in:
Kimmo Pekkola
2009-08-26 19:29:49 +00:00
parent 9cf291517a
commit ffdec7be65
5 changed files with 7 additions and 6 deletions

View File

@ -36,6 +36,7 @@
#include <tchar.h>
#include "MeasureCalc.h"
#include "MeasureNet.h"
#include "MeasurePlugin.h"
#include "MeterButton.h"
using namespace Gdiplus;
@ -1875,7 +1876,7 @@ void CMeterWindow::Update(bool nodraw)
{
try
{
if ((*i)->HasDynamicVariables())
if ((*i)->HasDynamicVariables() && dynamic_cast<CMeasurePlugin*>((*i)) == NULL) // Plugins are not meant to be reinitialized
{
(*i)->ReadConfig(m_Parser, (*i)->GetName());
}