Skip to content

Commit 2455aa8

Browse files
authored
Merge pull request #2328 from ControlSystemStudio/db_screenshot
Databrowser: Use actual plot for Print and Snapshot context menu
2 parents d682d4f + d311c3e commit 2455aa8

File tree

1 file changed

+3
-2
lines changed
  • app/databrowser/src/main/java/org/csstudio/trends/databrowser3/ui

1 file changed

+3
-2
lines changed

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/ui/Perspective.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ private void createContextMenu()
198198
items.addAll(add_data);
199199

200200
items.add(new SeparatorMenuItem());
201-
items.add(new PrintAction(plot.getPlot()));
202-
items.add(new SaveSnapshotAction(plot.getPlot()));
201+
// Get screenshot of actual plot without optional toolbar
202+
items.add(new PrintAction(plot.getPlot().getCenter()));
203+
items.add(new SaveSnapshotAction(plot.getPlot().getCenter()));
203204

204205
SelectionService.getInstance().setSelection(this, Arrays.asList(DatabrowserSelection.of(model, plot)));
205206
List<ContextMenuEntry> supported = ContextMenuService.getInstance().listSupportedContextMenuEntries();

0 commit comments

Comments
 (0)