Resolves: tdf#116116 vertically center line in allocated height
Change-Id: Iee4cd859cdc52a2272f5b01c3e4a57336cc336a4
Reviewed-on: https://gerrit.libreoffice.org/50891
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index fd0dcd6..145a9e4 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1748,6 +1748,7 @@ void CustomPropertiesWindow::CreateNewLine()
pNewLine->m_aValueEdit->SetAccessibleName(m_pHeaderAccValue->GetText());
sal_Int32 nPos = GetExistingLineCount() * GetLineHeight();
nPos += LogicToPixel(Size(0, 2), MapMode(MapUnit::MapAppFont)).Height();
m_aCustomPropertiesLines.push_back( pNewLine );
SetWidgetWidths(pNewLine);