[Libreoffice-commits] core.git: wizards/com

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 1 07:26:18 UTC 2020


 wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e22408d15f74f3aa4be324fa00978f7041882673
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Mon Aug 31 14:50:09 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 1 09:25:39 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: I937be6f80272db668fff7fb77e5f7f2dd402c23e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101780
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
index 6bd2ae6e8e92..289f76dd36d4 100644
--- a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
+++ b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java
@@ -52,14 +52,14 @@ public class PrimaryKeyHandler implements XFieldSelectionListener
     private final FieldSelection curPrimaryKeySelection;
     private String[] fieldnames;
     private final TableDescriptor curTableDescriptor;
-    private final boolean bAutoPrimaryKeysupportsAutoIncrmentation;
+    private final boolean bAutoPrimaryKeysupportsAutoIncrementation;
     private static final String SAUTOMATICKEYFIELDNAME = "ID";
 
     public PrimaryKeyHandler(TableWizard _CurUnoDialog, TableDescriptor _curTableDescriptor)
     {
         this.CurUnoDialog = _CurUnoDialog;
         curTableDescriptor = _curTableDescriptor;
-        bAutoPrimaryKeysupportsAutoIncrmentation = curTableDescriptor.oTypeInspector.isAutoIncrementationSupported();
+        bAutoPrimaryKeysupportsAutoIncrementation = curTableDescriptor.oTypeInspector.isAutoIncrementationSupported();
         short curtabindex = (short) ((TableWizard.SOPRIMARYKEYPAGE * 100) - 20);
         Integer IPRIMEKEYSTEP = Integer.valueOf(TableWizard.SOPRIMARYKEYPAGE);
         final String sExplanations = CurUnoDialog.m_oResource.getResText("RID_TABLE_26");
@@ -274,7 +274,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener
     {
         boolean bdoEnable = (this.chkcreatePrimaryKey.getState() == 1);
         Helper.setUnoPropertyValue(UnoDialog.getModel(optAddAutomatically), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bdoEnable));
-        Helper.setUnoPropertyValue(UnoDialog.getModel(chkApplyAutoValueAutomatic), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bAutoPrimaryKeysupportsAutoIncrmentation && bdoEnable));
+        Helper.setUnoPropertyValue(UnoDialog.getModel(chkApplyAutoValueAutomatic), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bAutoPrimaryKeysupportsAutoIncrementation && bdoEnable));
         Helper.setUnoPropertyValue(UnoDialog.getModel(optUseExisting), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bdoEnable));
         Helper.setUnoPropertyValue(UnoDialog.getModel(optUseSeveral), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bdoEnable));
         //toggle subcontrols of the radiobuttons...
@@ -386,7 +386,7 @@ public class PrimaryKeyHandler implements XFieldSelectionListener
         try
         {
             boolean bisAutomaticMode = AnyConverter.toBoolean(Helper.getUnoPropertyValue(UnoDialog.getModel(optAddAutomatically), PropertyNames.PROPERTY_ENABLED));
-            boolean bdoenable = bAutoPrimaryKeysupportsAutoIncrmentation && optAddAutomatically.getState() && bisAutomaticMode;
+            boolean bdoenable = bAutoPrimaryKeysupportsAutoIncrementation && optAddAutomatically.getState() && bisAutomaticMode;
             Helper.setUnoPropertyValue(UnoDialog.getModel(chkApplyAutoValueAutomatic), PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bdoenable));
         }
         catch (IllegalArgumentException e)


More information about the Libreoffice-commits mailing list