$NetBSD: patch-af,v 1.8 2004/06/27 20:06:24 dmcmahill Exp $

--- src/wp/impexp/xp/ie_imp_RTF.cpp.orig	Thu Mar  4 08:21:10 2004
+++ src/wp/impexp/xp/ie_imp_RTF.cpp
@@ -1211,9 +1211,9 @@ RTFProps_ParaProps& RTFProps_ParaProps::
 		m_iOverrideLevel = other.m_iOverrideLevel;
 		if(m_tabTypes.getItemCount() > 0)
 		{
-			UT_uint32 dum = reinterpret_cast<UT_uint32>(m_tabTypes.getNthItem(0));
+			UT_uint32 dum = (UT_uint32)(m_tabTypes.getNthItem(0));
 			m_curTabType = static_cast<eTabType>(dum);
-			dum = reinterpret_cast<UT_uint32>(m_tabLeader.getNthItem(0));
+			dum = (UT_uint32)(m_tabLeader.getNthItem(0));
 			m_curTabLeader = static_cast<eTabLeader>(dum);
 		}
 		else
@@ -2458,7 +2458,7 @@ UT_uint32 IE_Imp_RTF::GetNthTableColour(
 {
 	if (colNum < m_colourTable.getItemCount())
 	{
-		return reinterpret_cast<UT_uint32>(m_colourTable.getNthItem(colNum));
+		return (UT_uint32)(m_colourTable.getNthItem(colNum));
 	}
 	else
 	{
@@ -2470,7 +2470,7 @@ UT_sint32 IE_Imp_RTF::GetNthTableBgColou
 {
 	if (colNum < m_colourTable.getItemCount())
 	{
-		return reinterpret_cast<UT_sint32>(m_colourTable.getNthItem(colNum));
+		return (UT_sint32)(m_colourTable.getNthItem(colNum));
 	}
 	else
 	{
@@ -6361,11 +6361,11 @@ bool IE_Imp_RTF::ApplyParagraphAttribute
 			if (i > 0)
 				propBuffer += ",";
 
-			UT_sint32 tabTwips = reinterpret_cast<UT_sint32>(m_currentRTFState.m_paraProps.m_tabStops.getNthItem(i));
+			UT_sint32 tabTwips = (UT_sint32)(m_currentRTFState.m_paraProps.m_tabStops.getNthItem(i));
 			double tabIn = tabTwips/(20.0*72.);
-			UT_uint32 idum = reinterpret_cast<UT_uint32>(m_currentRTFState.m_paraProps.m_tabTypes.getNthItem(i));
+			UT_uint32 idum = (UT_uint32)(m_currentRTFState.m_paraProps.m_tabTypes.getNthItem(i));
 			eTabType tabType = static_cast<eTabType>(idum);
-			idum = reinterpret_cast<UT_uint32>((m_currentRTFState.m_paraProps.m_tabLeader.getNthItem(i)));
+			idum = (UT_uint32)((m_currentRTFState.m_paraProps.m_tabLeader.getNthItem(i)));
 			eTabLeader tabLeader = static_cast<eTabLeader>(idum);
 			char  cType = ' ';
 			switch(tabType)
@@ -9874,9 +9874,9 @@ bool IE_Imp_RTF::buildAllProps(char * pr
 		if (i > 0)
 			strcat(propBuffer, ",");
 
-		UT_sint32 tabTwips = reinterpret_cast<UT_sint32>(pParas->m_tabStops.getNthItem(i));
+		UT_sint32 tabTwips = (UT_sint32)(pParas->m_tabStops.getNthItem(i));
 		double tabIn = tabTwips/(20.0*72.);
-		UT_uint32 idum = reinterpret_cast<UT_uint32>(pParas->m_tabTypes.getNthItem(i));
+		UT_uint32 idum = (UT_uint32)(pParas->m_tabTypes.getNthItem(i));
 		eTabType tabType = static_cast<eTabType>(idum);
 		idum = (UT_uint32) (pParas->m_tabLeader.getNthItem(i));
 		eTabLeader tabLeader = static_cast<eTabLeader>(idum);
