summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdocapt.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 12:12:25 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 12:12:25 +0000
commitceeea3ad2cee976110e484275394352fd536f955 (patch)
treec8e591edb9581709ef4d965be89c4c19cbab593f /svx/source/svdraw/svdocapt.cxx
parentc25231f9684eee88b228e4740bd1e75447507a61 (diff)
INTEGRATION: CWS sb59 (1.21.60); FILE MERGED
2006/08/28 12:58:02 sb 1.21.60.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'svx/source/svdraw/svdocapt.cxx')
-rw-r--r--svx/source/svdraw/svdocapt.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx
index 8bb58ceb144b..1146343ff1d2 100644
--- a/svx/source/svdraw/svdocapt.cxx
+++ b/svx/source/svdraw/svdocapt.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdocapt.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 05:54:12 $
+ * last change: $Author: obo $ $Date: 2006-10-12 13:12:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -356,7 +356,7 @@ void SdrCaptionObj::RecalcBoundRect()
SdrObject* SdrCaptionObj::CheckHit(const Point& rPnt, USHORT nTol, const SetOfByte* pVisiLayer) const
{
- if (pVisiLayer!=NULL && !pVisiLayer->IsSet(nLayerId)) return NULL;
+ if (pVisiLayer!=NULL && !pVisiLayer->IsSet(sal::static_int_cast< sal_uInt8 >(nLayerId))) return NULL;
sal_Bool bHit(SdrRectObj::CheckHit(rPnt,nTol,pVisiLayer) != NULL);
if (!bHit) {
INT32 nMyTol=nTol;
@@ -426,7 +426,7 @@ SdrHdl* SdrCaptionObj::GetHdl(USHORT nHdlNum) const
return SdrRectObj::GetHdl(nHdlNum);
} else {
USHORT nPntNum=nHdlNum;
- nPntNum-=nRectHdlAnz;
+ nPntNum=nPntNum-nRectHdlAnz;
if (nPntNum<aTailPoly.GetSize()) {
SdrHdl* pHdl=new SdrHdl(aTailPoly.GetPoint(nPntNum),HDL_POLY);
pHdl->SetPolyNum(1);