diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-06 17:17:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-06 17:17:34 +0000 |
commit | 7f9f7dad00ea5f025578c491005835740f9ffd90 (patch) | |
tree | 011a87a78042a82ea3a18f5c08e60f6a3930bf0b /Build/source/utils/asymptote/fileio.h | |
parent | 37d8fb68e502daabe6aa5f5ae9fb78191f275742 (diff) |
asy 2.56 sources
git-svn-id: svn://tug.org/texlive/trunk@52300 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/fileio.h')
-rw-r--r-- | Build/source/utils/asymptote/fileio.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/fileio.h b/Build/source/utils/asymptote/fileio.h index d5e78cec294..1341d66b2dd 100644 --- a/Build/source/utils/asymptote/fileio.h +++ b/Build/source/utils/asymptote/fileio.h @@ -117,7 +117,7 @@ public: file(const string& name, bool check=true, Mode type=NOMODE, bool binary=false, bool closed=false) : name(name), check(check), type(type), linemode(false), csvmode(false), - singlereal(false), singleint(true), signedint(true), + wordmode(false), singlereal(false), singleint(true), signedint(true), closed(closed), standard(name.empty()), binary(binary), nullfield(false), whitespace("") {dimension();} @@ -423,7 +423,8 @@ public: ifile(name,comment,true,UPDATE,std::ios::in | std::ios::out) {} Int precision(Int p) { - return p == 0 ? stream->precision() : stream->precision(p); + return p == 0 ? stream->precision(settings::getSetting<Int>("digits")) : + stream->precision(p); } void flush() {if(fstream) fstream->flush();} @@ -463,6 +464,7 @@ public: } else { name=outpath(name); stream=fstream=new std::ofstream(name.c_str(),mode | std::ios::trunc); + stream->precision(settings::getSetting<Int>("digits")); index=processData().ofile.add(fstream); Check(); } @@ -483,7 +485,8 @@ public: } void clear() {stream->clear();} Int precision(Int p) { - return p == 0 ? stream->precision() : stream->precision(p); + return p == 0 ? stream->precision(settings::getSetting<Int>("digits")) : + stream->precision(p); } void flush() {stream->flush();} |