Browse Source

* propagate ixDescending in bufdataset. Patch by Hert van Zwietering, Mantis #20043

git-svn-id: trunk@19496 -
marco 14 years ago
parent
commit
f005d71110
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/base/bufdataset.pas

+ 1 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -916,7 +916,7 @@ begin
         AField := TField(IndexFields[FieldNr]);
         AField := TField(IndexFields[FieldNr]);
         ProcessFieldCompareStruct(AField,DBCompareStruct[FieldNr]);
         ProcessFieldCompareStruct(AField,DBCompareStruct[FieldNr]);
 
 
-        DBCompareStruct[FieldNr].Desc := (DescIndexFields.IndexOf(AField)>-1);
+        DBCompareStruct[FieldNr].Desc := (DescIndexFields.IndexOf(AField)>-1) or (ixDescending in Options);
         if (CInsIndexFields.IndexOf(AField)>-1) then
         if (CInsIndexFields.IndexOf(AField)>-1) then
           DBCompareStruct[FieldNr].Options := [loCaseInsensitive]
           DBCompareStruct[FieldNr].Options := [loCaseInsensitive]
         else
         else