Community
Participate
Working Groups
The page setup of the ecore editor shows initially strange numbers. When I switch to another paper format and back to A4 they seem alright (though the margins with unchanged 5 inches still don't leave any space to print).
Created attachment 44124 [details] screenshot of initial settings
If one of the margins is changed the OK button is disabled and not enabled anymore even if the old value is restored.
Changing the component
Created attachment 44669 [details] Here's a patch that fixes this. Changes: 1. The page width and height fields will now be updated correctly. 2. Fixed conversion from inches to mm. 3. The page width and height for each of the defined paper sizes will now be accurate each time. 4. It will now not allow you to set margins to be bigger than the page size. For example, the sum of the right and left margins cannot be bigger than the width of the page (this is what caused the page breaks to disappear). Same goes for top and bottom margins.
Created attachment 45791 [details] Updated patch. This updated patch also fixes the problems from Bug 149726. In addition, it also fixes another bug where the margins check will now behave properly if landscape is selected (see point 4 above).
Tryed the patch with HEAD revision of org.eclipse.gmf.runtime.diagram.ui. All my usage scenarios worked just fine - portrait/landscape - workspace/diagram setings - mm/inch units - page margins Thanks
patch committed for 1.0.100
Reopening. In the page setup dialog, page size and margin values change when the user enters values as millimeters and then restores them. Steps to reproduce: 1. Open a GMF editor. 2. Go to File-> Page Setup and change teh Radio Button to 'Use Diagram Settings' 3. Change units to millimeters. 4. Enter 10, 30 , 40 and 40 agin into the Top, Bottom, Left and Right Margins Values. 5. Enter 200 respective 400 in Width and respective Height Paper Size values. 6. Apply changes then Exit Page setup dialog ad reopen again from File->Page setup menu RESULTS: Margins Top:10.008 mm Bottom: 29.997 mm Left:40.005 mm Right: 40.005 mm Size Height: 399.99 mm Wiidth:200 mm EXPECTED: Margins Top:10 mm Bottom: 30 mm Left:40 mm Right: 40 mm Size Height: 400 mm Width:200 mm
Created attachment 49949 [details] Patch for reopened problem This patch will fix the problem described in the comment above. Files affected: org.eclipse.gmf.runtime.diagram.ui.internal.dialogs.PageSetupConfigBlock
The bug described in comment #8 has reappeared from Bug 113084.
committed the patch for the reopened problem.
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug