Changeset 4346 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp


Ignore:
Timestamp:
Jun 24, 2012, 4:31:10 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4345 r4346  
    8787                                     QVector<t_polarPoint*>* dataMP2) {
    8888
    89   if (((bncApp*) qApp)->mode() == bncApp::interactive) {
    90 
    91     t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), 0);
     89  bncApp* app = dynamic_cast<bncApp*>(qApp);
     90  if (app->mode() == bncApp::interactive) {
     91
     92    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), app->mainWindow());
    9293    plotMP1->addCurve(dataMP1);
    9394
    94     t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), 0);
     95    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), app->mainWindow());
    9596    plotMP2->addCurve(dataMP2);
    9697   
     
    101102    t_graphWin* graphWin = new t_graphWin(0, plots);
    102103
    103     graphWin->show();
     104    graphWin->exec();
    104105  }
    105106}
Note: See TracChangeset for help on using the changeset viewer.