Re: CVS: commit msevior abiword-plugins/tools/abimathview/xp

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Sep 24 2005 - 01:07:50 CEST

>
> Martin, Could you please comment out or remove those
> printfs? Thanks.
>

Sorry everyone, printf's removed.

MArtin

> Dom
>
> --- cvs@abisource.com wrote:
>
>>
>> Update of
>> /cvsroot/abiword-plugins/tools/abimathview/xp
>> In directory
>>
> abiword.snt.utwente.nl:/tmp/cvs-serv6585/abimathview/xp
>>
>> Modified Files:
>> AbiMathView.cpp
>> Log Message:
>>
>> Fix print with sqrt bug on unix. Might fix 9502 for
>> windows
>>
>>
>> Index: AbiMathView.cpp
>>
> ===================================================================
>> RCS file:
>>
> /cvsroot/abiword-plugins/tools/abimathview/xp/AbiMathView.cpp,v
>> retrieving revision 1.38
>> retrieving revision 1.39
>> diff -u -d -r1.38 -r1.39
>> --- AbiMathView.cpp 17 Sep 2005 22:55:40 -0000 1.38
>> +++ AbiMathView.cpp 23 Sep 2005 14:14:18 -0000 1.39
>> @@ -630,7 +630,14 @@
>> {
>> SmartPtr<libxml2_MathView> pMathView =
>> m_vecMathView.getNthItem(uid);
>> UT_return_if_fail(pMathView);
>> - pMathView->loadBuffer(sMathBuf.utf8_str());
>> + UT_DEBUGMSG(("loading |%s|
>> \n",sMathBuf.utf8_str()));
>> + bool b =
>> pMathView->loadBuffer(sMathBuf.utf8_str());
>> + if(!b)
>> + {
>> + UT_DEBUGMSG(("Attempt to load |%s| \n failed
>> \n",sMathBuf.utf8_str()));
>> + UT_UTF8String sFailed = "<math><mrow> failed
>> </mrow></math>";
>> + pMathView->loadBuffer(sFailed.utf8_str());
>> + }
>> }
>>
>> void GR_MathManager::setDefaultFontSize(UT_sint32
>> uid, UT_sint32 iSize)
>> @@ -740,6 +747,10 @@
>>
>> GR_Painter painter(getGraphics());
>> GR_Image * pImage =
>> painter.genImageFromRectangle(rec);
>> + if(pImage == NULL)
>> + {
>> + return false;
>> + }
>> UT_ByteBuf * pBuf = NULL;
>>
>> pImage->convertToBuffer(&pBuf);
>> @@ -762,7 +773,14 @@
>> void GR_MathManager::initializeEmbedView(UT_sint32
>> uid)
>> {
>> SmartPtr<libxml2_MathView> pMathView =
>> m_vecMathView.getNthItem(uid);
>> + // printf("pMathView uid is %d \n",uid);
>> UT_return_if_fail(pMathView);
>> + // printf("Dirty Layout is set \n");
>> + pMathView->setDirtyLayout();
>> +
>>
> UT_return_if_fail(pMathView->getMathMLNamespaceContext());
>> +
>>
> UT_return_if_fail(pMathView->getMathMLNamespaceContext()->getGraphicDevice());
>> + printf("Clear Cache is called \n");
>> +
>>
> pMathView->getMathMLNamespaceContext()->getGraphicDevice()->clearCache();
>> }
>>
>> void GR_MathManager::loadEmbedData(UT_sint32 uid)
>> @@ -796,7 +814,7 @@
>> UT_return_if_fail(bFoundDataID);
>> UT_return_if_fail(pszDataID);
>> UT_DEBUGMSG(("MATH ML string is... \n %s
>> \n",sMathML.utf8_str()));
>> -
>> + printf("MATH ML string is... \n %s
>> \n",sMathML.utf8_str());
>> _loadMathML(uid, sMathML);
>> }
>>
>>
>> -----------------------------------------------
>> To unsubscribe from this list, send a message to
>> abisource-cvs-commit-request@abisource.com with the
>> word
>> unsubscribe in the message body.
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
Received on Sat Sep 24 01:09:09 2005

This archive was generated by hypermail 2.1.8 : Sat Sep 24 2005 - 01:09:10 CEST