On 03/08/12 10:31 AM, cvs@abisource.com wrote:
>
> Modified: abiword/branches/gsoc2012dialogs/src/text/fmt/xp/fl_TableLayout.cpp
> ===================================================================
> --- abiword/branches/gsoc2012dialogs/src/text/fmt/xp/fl_TableLayout.cpp 2012-08-03 16:38:30 UTC (rev 31657)
> +++ abiword/branches/gsoc2012dialogs/src/text/fmt/xp/fl_TableLayout.cpp 2012-08-03 17:31:58 UTC (rev 31658)
> @@ -1156,7 +1156,7 @@
> else
> {
> m_iTableWidth = getDocSectionLayout()->getActualColumnWidth();
> - std::string buf = UT_std_string_sprintf("%.2fpt", m_iTableWidth);
> + std::string buf = UT_std_string_sprintf("%.2fpt", UT_convertDimToInches(m_iTableWidth,DIM_PT));
> m_sTableWidth = buf;
> }
Note: if you set your locale to something like fr_FR, the decimal
separator become ',' instead of '.'. This sill cause problems as the
printf functions use the locales. That why you should surround that call
with a UT_LocaleTransactor. This is mandatory.
Hub
Received on Fri Aug 3 21:08:19 2012
This archive was generated by hypermail 2.1.8 : Fri Aug 03 2012 - 21:08:19 CEST