From 854da46a4b5e201e20841c20a740210b97b2583b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 14 Jan 2014 20:40:31 +0100 Subject: [PATCH] This shall probably use the value of getMaxColumnsInIndex() Change-Id: I1ae85e416440768ab40c817506d5b106289c4d72 --- dbaccess/source/ui/tabledesign/TableController.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index 49c3173e8ada..ceba53a3b18a 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -493,7 +493,7 @@ void OTableController::doEditIndexes() if (!xIndexes.is()) return; - DbaIndexDialog aDialog(getView(), aFieldNames, xIndexes, getConnection(), getORB(), isConnected() ? getConnection()->getMetaData().is() && getConnection()->getMetaData()->getMaxColumnsInIndex() : sal_Int32(0)); + DbaIndexDialog aDialog(getView(), aFieldNames, xIndexes, getConnection(), getORB(), isConnected() && getConnection()->getMetaData().is() ? getConnection()->getMetaData()->getMaxColumnsInIndex() : 0); if (RET_OK != aDialog.Execute()) return;