Skip to content

Commit

Permalink
patch gdlwxstream.cpp correct #1643
Browse files Browse the repository at this point in the history
This could slow down a bit the plotting in wxwidgets mode.
  • Loading branch information
GillesDuvert authored Sep 26, 2023
1 parent 9e75aee commit 3f51bc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gdlwxstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ void GDLWXStream::SetGdlxwGraphicsPanel(gdlwxGraphicsPanel* w, bool isPlot)

void GDLWXStream::Update()
{
if( this->valid && container != NULL) {
if (this->valid && container != NULL) {
container->Refresh();
GDLWidget::CallWXEventLoop();
}
flush(); //needed otherwise synchro is bad see #1643
GDLWidget::CallWXEventLoop();
}
}
////should be used when one does not recreate a wxstream each time size changes...
void GDLWXStream::SetSize( wxSize s )
Expand Down

0 comments on commit 3f51bc8

Please sign in to comment.