summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-25 11:09:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-25 12:07:39 +0200
commitae081cc1137fc0f41612504994d58fe0d9c0a7fc (patch)
treeda1a3c9980f8fbb1facdf7683c7ef05ccc1344e7
parent1b9574ed8269f4ed9dde33856c1d74702a7fa4bb (diff)
tdf#120830 crash opening Form-Based Filters
regression from commit 7469e078dc3a7a891bd7f5c44a693e4421d3bcdd loplugin:useuniqueptr in FmXGridCell Change-Id: Ia74fcb518fe568d702101ff088f30dc8c096528f Reviewed-on: https://gerrit.libreoffice.org/62346 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--svx/source/fmcomp/gridcell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index ae0690c23c4f..3231452d8434 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -4528,7 +4528,7 @@ FmXFilterCell::FmXFilterCell(DbGridColumn* pColumn, std::unique_ptr<DbFilterFiel
:FmXGridCell( pColumn, std::move(pControl) )
,m_aTextListeners(m_aMutex)
{
- pControl->SetCommitHdl( LINK( this, FmXFilterCell, OnCommit ) );
+ static_cast<DbFilterField*>(m_pCellControl.get())->SetCommitHdl( LINK( this, FmXFilterCell, OnCommit ) );
}