diff options
author | Albert Astals Cid <aacid@kde.org> | 2020-01-05 22:40:12 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2020-01-05 22:44:45 +0000 |
commit | fb9ada7648cb3adb0b8791bab098de1e89c75226 (patch) | |
tree | b696978efd2de76e2f57390272c4ec1a5d0a2718 | |
parent | a0e6c8ffca03d324846db8b099774aafaf64627f (diff) |
pdftohtml: Make HtmlFont::size an int
It comes from a double so it could potentially be negative
-rw-r--r-- | utils/HtmlFonts.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/HtmlFonts.h b/utils/HtmlFonts.h index 33b555d5..88cc1e8e 100644 --- a/utils/HtmlFonts.h +++ b/utils/HtmlFonts.h @@ -18,7 +18,7 @@ // under GPL version 2 or later // // Copyright (C) 2010 OSSD CDAC Mumbai by Leena Chourey (leenac@cdacmumbai.in) and Onkar Potdar (onkar@cdacmumbai.in) -// Copyright (C) 2010, 2012, 2017, 2018 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2010, 2012, 2017, 2018, 2020 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2011 Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> // Copyright (C) 2011 Joshua Richardson <jric@chegg.com> // Copyright (C) 2012 Igor Slepchin <igor.slepchin@gmail.com> @@ -61,7 +61,7 @@ class HtmlFontColor{ class HtmlFont{ private: - unsigned int size; + int size; int lineSize; bool italic; bool bold; @@ -81,7 +81,7 @@ public: bool isItalic() const {return italic;} bool isBold() const {return bold;} bool isRotOrSkewed() const { return rotOrSkewed; } - unsigned int getSize() const {return size;} + int getSize() const {return size;} int getLineSize() const {return lineSize;} void setLineSize(int _lineSize) { lineSize = _lineSize; } void setRotMat(const double * const mat) |