summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-11-23 19:01:05 +0000
committerjp <jp@openoffice.org>2000-11-23 19:01:05 +0000
commit740efbb1daf26828f70dc785c1e107f67706286b (patch)
tree4ec5bdf875957ee1382f6c9ba5c075bec7b11677
parentf29697f00808852ad1e8913d1291e0b4abf4646c (diff)
Task #80648#: status notify at the correct position
-rw-r--r--sw/source/core/crsr/callnk.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx
index 04fa441a6769..6dfa1ba442b9 100644
--- a/sw/source/core/crsr/callnk.cxx
+++ b/sw/source/core/crsr/callnk.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: callnk.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-11-15 13:42:41 $
+ * last change: $Author: jp $ $Date: 2000-11-23 20:01:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -181,10 +181,10 @@ SwCallLink::~SwCallLink()
(( nCmp = nCntnt ) + 1 == nAktCntnt || // Right
nCntnt -1 == ( nCmp = nAktCntnt )) ) // Left
{
+ if( nCmp == nAktCntnt && pCurCrsr->HasMark() ) // left & Sele
+ ++nCmp;
if ( ((SwTxtNode*)pCNd)->HasHints() )
{
- if( nCmp == nAktCntnt && pCurCrsr->HasMark() ) // left & Sele
- ++nCmp;
const SwpHints &rHts = ((SwTxtNode*)pCNd)->GetSwpHints();
USHORT n;
@@ -223,8 +223,9 @@ SwCallLink::~SwCallLink()
if( pBreakIt->xBreak.is() )
{
const String& rTxt = ((SwTxtNode*)pCNd)->GetTxt();
- if( pBreakIt->xBreak->getScriptType( rTxt, nCntnt )
- != pBreakIt->xBreak->getScriptType( rTxt, nAktCntnt ))
+ if( !nCmp ||
+ pBreakIt->xBreak->getScriptType( rTxt, nCmp )
+ != pBreakIt->xBreak->getScriptType( rTxt, nCmp - 1 ))
{
rShell.CallChgLnk();
return;