--- sw/source/filter/inc/msfilter.hxx (revision 1358914) +++ sw/source/filter/inc/msfilter.hxx (working copy) @@ -117,7 +117,12 @@ Martin Maher nPos || nPos2 > nPos){ + return sal_False; + }else{ + return ( + (rParams.GetChar(nPos1) == 'M'||rParams.GetChar(nPos1) == 'm')&& + (rParams.GetChar(nPos2) == 'A'||rParams.GetChar(nPos2) == 'a') + ); + } + } + sal_Bool IsNextPM(String& rParams, xub_StrLen nPos){ + xub_StrLen nPos1 = nPos + 1; + xub_StrLen nPos2 = nPos + 2; + + + if(nPos1 >= rParams.Len() - 1 || nPos2 > rParams.Len() - 1){ + return sal_False; + }else{ + return ( + (rParams.GetChar(nPos1) == 'P'||rParams.GetChar(nPos1) == 'p')&& + (rParams.GetChar(nPos2) == 'M'||rParams.GetChar(nPos2) == 'm') + ); + } + + } bool IsNotAM(String& rParams, xub_StrLen nPos) { return (