cid#1607041 PA: Public Attribute

Change-Id: I991d0213a2f429a89e6b1431d9dc900400b60a96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173844
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2024-09-24 08:49:48 +01:00
parent a90d2bcb3d
commit 3c3657cbab
2 changed files with 8 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ public class DBColumn
private boolean bAlignLeft;
private String CharFontName;
private PropertyState PropertyState;
public int ValColumn = 1;
private int ValColumn = 1;
private int ValRow = 0;
public FieldColumn CurDBField;
private XTextTable xTextTable;
@@ -445,4 +445,9 @@ public class DBColumn
return true; //most probably this is really the Namecell!!!!
}
}
public int getValColumn()
{
return ValColumn;
}
}

View File

@@ -491,11 +491,11 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen
{
DBColumn oDBColumn1 = getDBColumnByName(oFieldColumn1.getFieldName());
DBColumn oDBColumn2 = getDBColumnByName(oFieldColumn2.getFieldName());
if (oDBColumn1.ValColumn < oDBColumn2.ValColumn)
if (oDBColumn1.getValColumn() < oDBColumn2.getValColumn())
{
return -1;
}
else if (oDBColumn1.ValColumn == oDBColumn2.ValColumn)
else if (oDBColumn1.getValColumn() == oDBColumn2.getValColumn())
{
return 0;
}