Kaydet (Commit) 42b80922 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

On init of DbCellControl, load value from Model

This fixes a regression introduced by "fdo#88551 no need to update content from field when activating grid cell"
that when switching from design mode to normal mode
before one moved row at least once, the current cell (inevitably of the first row)
was always displayed empty.
Before, the update was done by the activation event (which was too often), so now we need to do it once at initialisation.
Not sure if using updateFromModel instead of UpdateFromField makes a difference. Hope not. Else need to change that.

Change-Id: I878dea0f91b370a4f83c3c1a3ed185a51ac9f0b7
üst 47bd9bd0
......@@ -919,6 +919,8 @@ void DbCellControl::Init( vcl::Window& rParent, const Reference< XRowSet >& _rxC
}
}
m_xCursor = _rxCursor;
if ( m_rColumn.getModel().is() )
updateFromModel( m_rColumn.getModel() );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment