Re: vincent - r31658 - in abiword/branches/gsoc2012dialogs/src: text/fmt/xp wp/ap/xp

Hubert Figuière <[email protected]>
Newsgroups gmane.editors.abiword.devel
Message-ID <[email protected]>
On 03/08/12 10:31 AM, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.