diff options
author | B Stack <bgstack15@gmail.com> | 2019-07-10 20:36:59 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-07-10 20:36:59 +0000 |
commit | b3eda3ab537804cfa07cc257944b6fc69bec59a8 (patch) | |
tree | cc720d69d3ca68b64ed0aa79438177b6953469a1 /wx+/graph.cpp | |
parent | Merge branch '10.12' into 'master' (diff) | |
parent | 10.13 (diff) | |
download | FreeFileSync-b3eda3ab537804cfa07cc257944b6fc69bec59a8.tar.gz FreeFileSync-b3eda3ab537804cfa07cc257944b6fc69bec59a8.tar.bz2 FreeFileSync-b3eda3ab537804cfa07cc257944b6fc69bec59a8.zip |
Merge branch '10.13' into 'master'10.13
10.13
See merge request opensource-tracking/FreeFileSync!10
Diffstat (limited to 'wx+/graph.cpp')
-rw-r--r-- | wx+/graph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wx+/graph.cpp b/wx+/graph.cpp index 3df8888a..41750a48 100644 --- a/wx+/graph.cpp +++ b/wx+/graph.cpp @@ -623,7 +623,7 @@ void Graph2D::render(wxDC& dc) const if (minX <= maxX && maxX - minX < std::numeric_limits<double>::infinity()) //valid x-range { - const wxSize minimalBlockSizePx = dc.GetTextExtent(L"00"); + const wxSize minimalBlockSizePx = dc.GetTextExtent(L"00"); int blockCountX = 0; //enlarge minX, maxX to a multiple of a "useful" block size @@ -676,7 +676,7 @@ void Graph2D::render(wxDC& dc) const *attr_.labelFmtY); if (graphArea.width <= 1 || graphArea.height <= 1) - return; + return; const ConvertCoord cvrtX(minX, maxX, graphArea.width - 1); //map [minX, maxX] to [0, pixelWidth - 1] const ConvertCoord cvrtY(maxY, minY, graphArea.height - 1); //map [minY, maxY] to [pixelHeight - 1, 0] |