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

From: Dom Lachowicz <domlachowicz_at_yahoo.com>
Date: Fri Sep 23 2005 - 16:58:38 CEST

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

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 Fri Sep 23 17:00:32 2005

This archive was generated by hypermail 2.1.8 : Fri Sep 23 2005 - 17:00:32 CEST