summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 08:49:48 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 18:09:06 +0200
commit3c3657cbabe711d057c09e8869b2751a78c34e3a (patch)
tree1cc82de0098605c679d16a449f99b7c011f0501b /wizards
parenta90d2bcb3d18787e3c9dec9a762d88492a9ba934 (diff)
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
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/DBColumn.java7
-rw-r--r--wizards/com/sun/star/wizards/report/ReportTextDocument.java4
2 files changed, 8 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java
index e53b0649d271..0c6e36e2219f 100644
--- a/wizards/com/sun/star/wizards/report/DBColumn.java
+++ b/wizards/com/sun/star/wizards/report/DBColumn.java
@@ -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;
+ }
}
diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
index b7f7c2a04de9..62f7391eec8b 100644
--- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java
+++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java
@@ -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;
}