summaryrefslogtreecommitdiff
path: root/wx+/graph.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-06-14 22:33:49 -0400
committerB Stack <bgstack15@gmail.com>2019-06-14 22:33:49 -0400
commit583d22efb5901296d1e3dcbc091be5dee9d8a14f (patch)
treecc720d69d3ca68b64ed0aa79438177b6953469a1 /wx+/graph.cpp
parentMerge branch '10.12' into 'master' (diff)
downloadFreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.gz
FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.tar.bz2
FreeFileSync-583d22efb5901296d1e3dcbc091be5dee9d8a14f.zip
10.13
Diffstat (limited to 'wx+/graph.cpp')
-rw-r--r--wx+/graph.cpp4
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]
bgstack15