From fb9ada7648cb3adb0b8791bab098de1e89c75226 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 5 Jan 2020 22:40:12 +0100 Subject: pdftohtml: Make HtmlFont::size an int It comes from a double so it could potentially be negative --- utils/HtmlFonts.h | 6 +++--- 1 file 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 +// Copyright (C) 2010, 2012, 2017, 2018, 2020 Albert Astals Cid // Copyright (C) 2011 Steven Murdoch // Copyright (C) 2011 Joshua Richardson // Copyright (C) 2012 Igor Slepchin @@ -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) -- cgit v1.2.3