diff options
| author | Manolo Gouy <Manolo> | 2011-02-04 09:17:45 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-04 09:17:45 +0000 |
| commit | 7c932c25d6a74530e5b086d8b0d888546cad10cc (patch) | |
| tree | a1561813d035706f338629accbf21088a90a159f /src/Fl_PostScript.cxx | |
| parent | 2251609ab3a4db3ed65c6e2974f6f92e0c564a5e (diff) | |
Added the possibility to call Fl_Paged_Device::scale(factor) with a single argument.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_PostScript.cxx')
| -rw-r--r-- | src/Fl_PostScript.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 372b3e624..c317beeef 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -1402,6 +1402,7 @@ void Fl_PostScript_File_Device::origin(int x, int y) void Fl_PostScript_File_Device::scale (float s_x, float s_y) { + if (s_y == 0.) s_y = s_x; Fl_PostScript_Graphics_Driver *ps = driver(); ps->scale_x = s_x; ps->scale_y = s_y; |
