[Libreoffice-commits] core.git: dbaccess/source

Matteo Casalin matteo.casalin at yahoo.com
Sat Sep 12 10:17:30 PDT 2015


 dbaccess/source/ui/misc/WTypeSelect.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1a78f0965d854f461a7a55ae93842ac06446e41d
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date:   Sat Sep 12 19:13:16 2015 +0200

    Restore correct boolean return value
    
    Fix commit f4c300eae4e9aaaec9e5d1f478ad35161ede2761
    
    Change-Id: I660ca80b9df47160a24c2d32b1b03a814285a9a8

diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx
index bc20e96..99be537 100644
--- a/dbaccess/source/ui/misc/WTypeSelect.cxx
+++ b/dbaccess/source/ui/misc/WTypeSelect.cxx
@@ -377,9 +377,9 @@ bool OWizTypeSelectList::IsPrimaryKeyAllowed() const
     {
         OFieldDescription* pField = static_cast<OFieldDescription*>(GetEntryData(GetSelectEntryPos(j)));
         if(!pField || pField->getTypeInfo()->nSearchType == ColumnSearch::NONE)
-            return true;
+            return false;
     }
-    return false;
+    return true;
 }
 
 void OWizTypeSelectList::setPrimaryKey(OFieldDescription* _pFieldDescr, sal_uInt16 _nPos, bool _bSet)


More information about the Libreoffice-commits mailing list