diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-10 03:01:52 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-10 03:01:52 +0000 |
commit | 0174af21196c197a5b3672c87bc6f7a614fddd7d (patch) | |
tree | 00b155441be0755336593a3a2170f7531a055e99 /dviware/dvisvgm/src/Length.hpp | |
parent | d1cebb67c836ee110bdbd3aeb622675df479c993 (diff) |
CTAN sync 201912100301
Diffstat (limited to 'dviware/dvisvgm/src/Length.hpp')
-rw-r--r-- | dviware/dvisvgm/src/Length.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/Length.hpp b/dviware/dvisvgm/src/Length.hpp index 4454eec168..3c4de91fae 100644 --- a/dviware/dvisvgm/src/Length.hpp +++ b/dviware/dvisvgm/src/Length.hpp @@ -39,7 +39,7 @@ class Length { enum class Unit {PT, BP, CM, MM, IN, PC, DD, CC, SP}; public: - constexpr Length () : _pt(0) {} + constexpr Length () =default; explicit constexpr Length (long double pt) : _pt(static_cast<double>(pt)) {} Length (double val, Unit unit) {set(val, unit);} Length (double val, const std::string &unitstr) {set(val, unitstr);} @@ -76,7 +76,7 @@ class Length { static constexpr double pt2sp = 65536.0; private: - double _pt; // length in TeX point units (72.27pt = 1in) + double _pt=0; // length in TeX point units (72.27pt = 1in) }; |