summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-08-29 14:31:05 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-08-29 14:31:05 +0000
commit6ecd3426c260ada6ef366e499135720ff6fdc126 (patch)
treefb734c3b992e9067256f4b7c888f16425cb4ce9b /wizards
parent0f41944f5f8432646c52b1976caf0f686cbfe53a (diff)
#100384# remaining Bug in Sorting routine fixed
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/ReportWizard.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java
index 13b11cc5c459..220e5cf8bc42 100644
--- a/wizards/com/sun/star/wizards/report/ReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/ReportWizard.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ReportWizard.java,v $
*
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
- * last change: $Author: bc $ $Date: 2002-08-21 15:39:53 $
+ * last change: $Author: bc $ $Date: 2002-08-29 15:31:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -761,19 +761,19 @@ public class ReportWizard {
try{
short iNextItemPos;
boolean bDoEnable = (xSortListBox[CurIndex].getSelectedItemPos() > 0); // the first Item is for "undefined"
- if (bDoEnable == true){
- if (CurIndex > MaxSortIndex)
- MaxSortIndex = CurIndex;
- }
- if (bDoEnable == false){
- if (CurIndex < MaxSortIndex - 1){
- for (int i = CurIndex + 1; i <= MaxSortIndex; i++){
- toggleSortListBox(i, false);
- if (i < MaxSortIndex)
- xSortListBox[i+1].selectItemPos((short)0,true);
+ if (bDoEnable == true){
+ if (CurIndex > MaxSortIndex)
+ MaxSortIndex = CurIndex;
}
+ if (bDoEnable == false){
+ if (CurIndex < MaxSortIndex){
+ for (int i = CurIndex + 1; i <= MAXSORTCRITERIA; i++){
+ toggleSortListBox(i, false);
+ if (i < MaxSortIndex)
+ xSortListBox[i+1].selectItemPos((short)0,true);
+ }
+ }
}
- }
else
toggleSortListBox(CurIndex+1, bDoEnable);
/* if ((bDoEnable == false) && (MaxSortIndex > CurIndex)){