diff options
Diffstat (limited to 'tex/context/base/m-chart.lua')
-rw-r--r-- | tex/context/base/m-chart.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/m-chart.lua b/tex/context/base/m-chart.lua index 943e6be63..0000d28e5 100644 --- a/tex/context/base/m-chart.lua +++ b/tex/context/base/m-chart.lua @@ -711,6 +711,8 @@ local function getchart(settings) if miny == 0 or y > maxy then maxy = y end end end +-- print("1>",x,y,nx,ny) +-- print("2>",minx, miny, maxx, maxy) -- check of window should be larger (maybe autofocus + nx/ny?) if autofocus then -- x and y are ignored @@ -725,15 +727,16 @@ local function getchart(settings) minx = x end if y and y > 0 then - minx = y + miny = y end if nx and nx > 0 then maxx = minx + nx - 1 end if ny and ny > 0 then - miny = miny + ny - 1 + maxy = miny + ny - 1 end end +-- print("3>",minx, miny, maxx, maxy) -- local nx = maxx - minx + 1 local ny = maxy - miny + 1 |