summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2000-10-19 08:44:47 +0000
committerThomas Lange <tl@openoffice.org>2000-10-19 08:44:47 +0000
commit0d89fae6aa321b0412d0735341082da5cc5702f5 (patch)
tree2cdaabeb84dc81f47ddf3517818226461f509490
parente5a4e1992ec85b6a020fdbb53cf64ce4758c3c2b (diff)
#79616# SelectAll fixed
-rw-r--r--starmath/source/edit.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 32c675282e3f..f43efc166bbc 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edit.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: tl $ $Date: 2000-10-12 08:26:37 $
+ * last change: $Author: tl $ $Date: 2000-10-19 09:44:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -570,12 +570,8 @@ BOOL SmEditWindow::IsAllSelected() const
void SmEditWindow::SelectAll()
{
- // set selection from first paragraph, first char to
- // last paragraph, last char
- ULONG nParaCnt = pEditEngine->GetParagraphCount(); //! always >= 1
- DBG_ASSERT( nParaCnt >= 1, "Sm : paragraph count is 0!" );
- ULONG nParaLen = pEditEngine->GetTextLen( nParaCnt - 1 );
- pEditView->SetSelection( ESelection( 0, 0, nParaCnt - 1, nParaLen - 1 ) );
+ // 0xFFFF as last two parameters refers to the end of the text
+ pEditView->SetSelection( ESelection( 0, 0, 0xFFFF, 0xFFFF ) );
}
void SmEditWindow::InsertCommand(USHORT Command)