diff options
Diffstat (limited to 'wx+/graph.h')
-rw-r--r-- | wx+/graph.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/wx+/graph.h b/wx+/graph.h index e9f6af32..2f73a643 100644 --- a/wx+/graph.h +++ b/wx+/graph.h @@ -326,11 +326,7 @@ private: std::optional<wxBitmap> doubleBuffer_; - using CurveList = std::vector<std::pair<SharedRef<CurveData>, CurveAttributes>>; - CurveList curves_; - - //perf!!! generating the font is *very* expensive! => buffer for Graph2D::render()! - const wxFont labelFont_{wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, L"Arial"}; + std::vector<std::pair<SharedRef<CurveData>, CurveAttributes>> curves_; }; } |