From 3dc3652c8cd1267ce27b9ae0e6fe0e9e4052482d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 16 Feb 2014 20:05:37 +0000 Subject: [PATCH] Removed rounding that didn't work for negative numbers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextformatdlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/richtext/richtextformatdlg.cpp b/src/richtext/richtextformatdlg.cpp index f6b4a80c2e..9a03da62d9 100644 --- a/src/richtext/richtextformatdlg.cpp +++ b/src/richtext/richtextformatdlg.cpp @@ -691,7 +691,7 @@ bool wxRichTextFormattingDialog::ConvertFromString(const wxString& str, int& ret float value = 0.0; wxSscanf(str.c_str(), wxT("%f"), &value); // Convert from cm - ret = (int) ((value * 100.0) + 0.5); + ret = (int) ((value * 100.0) /* + 0.5 */); return true; } else if (unit == wxTEXT_ATTR_UNITS_PERCENTAGE) @@ -703,7 +703,7 @@ bool wxRichTextFormattingDialog::ConvertFromString(const wxString& str, int& ret { float value = 0.0; wxSscanf(str.c_str(), wxT("%f"), &value); - ret = (int) ((value * 100.0) + 0.5); + ret = (int) ((value * 100.0) /* + 0.5 */); } else if (unit == wxTEXT_ATTR_UNITS_POINTS) {