To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=112155 Issue #|112155 Summary|framework: gridcontrol: crash when hiding a gridcontro |l Component|framework Version|DEV300m79 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|ui Assigned to|mba Reported by|hanya
------- Additional comments from [email protected] Sun Jun 6 09:35:05 +0000 2010 ------- Office crashes when a gridcontrol is tried to hide with setVisible(False) method on the dialog. code to reproduce the problem: Sub GridTest_setVisible() ' needs dialog DialogLibraries.loadLibrary("Standard") oDialog = CreateUnoDialog( _ DialogLibraries.getByName("Standard").getByName("Dialog1")) oDialogModel = oDialog.getModel() oColumnModel = createUnoService( "com.sun.star.awt.grid.DefaultGridColumnModel") oColumn1 = createUnoService( "com.sun.star.awt.grid.GridColumn") oColumn1.Title = "City" oColumn2 = createUnoService( "com.sun.star.awt.grid.GridColumn") oColumn2.Title = "Country" oColumnModel.addColumn( oColumn1 ) oColumnModel.addColumn( oColumn2 ) oDataModel = createUnoService( "com.sun.star.awt.grid.DefaultGridDataModel") oDataModel.addRow ( "1", Array( "Hamburg", "Germany") ) oDataModel.addRow ( "2", Array("Brisbane", "Australia") ) oModel = oDialogModel.createInstance( "com.sun.star.awt.grid.UnoControlGridModel" ) oModel.Name="Grid1" oModel.ColumnModel = oColumnModel oModel.GridDataModel = oDataModel oModel.ShowColumnHeader = True oModel.ShowRowHeader = True oModel.Width = 100 oModel.Height = 100 'oModel.Step = 2 oDialogModel.insertByName("Grid1", oModel ) 'oDialogModel.Step = 1 oDialog.execute() End Sub ' executed by the button to hide the gridcontrol on the dialog Sub ButtonPushed(ev) oDialog = ev.Source.getContext() oGrid = oDialog.getControl("Grid1") oGrid.setVisible(False) 'oDialog.getModel().Step = 2 End Sub Step property of the dialog model causes the same problem also. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
