summaryrefslogtreecommitdiff
path: root/wizards/com
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 08:43:29 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 18:08:33 +0200
commitb3a14ae7efa82473998c04d9e23748c878566acf (patch)
treefbc433efdb7e7843fcf4602dafe52f79ec5183ca /wizards/com
parent96427ee2e19479fb4a88e08ad176361aaae1a5a6 (diff)
cid#1607483 PA: Public Attribute
Change-Id: I4712b1523cc54feb3b84b5435960e4d5707735a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173841 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'wizards/com')
-rw-r--r--wizards/com/sun/star/wizards/query/QueryWizard.java2
-rw-r--r--wizards/com/sun/star/wizards/ui/FieldSelection.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java
index 4ecb47072c45..471aa4a8594a 100644
--- a/wizards/com/sun/star/wizards/query/QueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/QueryWizard.java
@@ -444,7 +444,7 @@ public class QueryWizard extends DatabaseObjectWizard
if (JavaTools.FieldInList(m_DBMetaData.NonAggregateFieldNames, CurDisplayFieldName) > -1)
{
showMessageBox("ErrorBox", VclWindowPeerAttribute.OK, resmsgNonNumericAsGroupBy);
- m_groupFieldSelection.xSelectedFieldsListBox.addItems(SelItems, m_groupFieldSelection.xSelectedFieldsListBox.getItemCount());
+ m_groupFieldSelection.getSelectedFieldsListBox().addItems(SelItems, m_groupFieldSelection.getSelectedFieldsListBox().getItemCount());
String FieldList[] = m_groupFieldSelection.getFieldsListBox().getItems();
int index = JavaTools.FieldInList(FieldList, CurDisplayFieldName);
if (index > -1)
diff --git a/wizards/com/sun/star/wizards/ui/FieldSelection.java b/wizards/com/sun/star/wizards/ui/FieldSelection.java
index 7c4e912539b8..97f19e4eb108 100644
--- a/wizards/com/sun/star/wizards/ui/FieldSelection.java
+++ b/wizards/com/sun/star/wizards/ui/FieldSelection.java
@@ -26,7 +26,7 @@ import java.util.*;
public class FieldSelection
{
protected XListBox xFieldsListBox; // Left ListBox
- public XListBox xSelectedFieldsListBox; // right (selected) ListBox
+ protected XListBox xSelectedFieldsListBox; // right (selected) ListBox
protected UnoDialog CurUnoDialog;
protected String sIncSuffix;
@@ -628,6 +628,11 @@ public class FieldSelection
return xFieldsListBox;
}
+ public XListBox getSelectedFieldsListBox()
+ {
+ return xSelectedFieldsListBox;
+ }
+
public void setModified(boolean _bModified)
{
bisModified = _bModified;