[chronojump] Encoder save barplot button saves the cairo graph



commit 730f40ae50c73abc1bf877b3e1a479b0cb0ba58e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 1 16:14:57 2022 +0200

    Encoder save barplot button saves the cairo graph

 src/gui/app1/encoder.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index dcab31b5c..8541ab24c 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -4975,13 +4975,13 @@ public partial class ChronoJumpWindow
        void on_button_encoder_capture_save_image_file_selected (string destination)
        {
                try {
-                       if(encoder_capture_curves_bars_drawingarea == null)
+                       if(encoder_capture_curves_bars_drawingarea_cairo == null)
                                return;
 
-                       Gdk.Pixbuf pixbuf = 
Gdk.Pixbuf.FromDrawable(encoder_capture_curves_bars_drawingarea.GdkWindow, Gdk.Colormap.System,
+                       Gdk.Pixbuf pixbuf = 
Gdk.Pixbuf.FromDrawable(encoder_capture_curves_bars_drawingarea_cairo.GdkWindow, Gdk.Colormap.System,
                                        0, 0, 0, 0,
-                                       UtilGtk.WidgetWidth(encoder_capture_curves_bars_drawingarea),
-                                       UtilGtk.WidgetHeight(encoder_capture_curves_bars_drawingarea) );
+                                       UtilGtk.WidgetWidth(encoder_capture_curves_bars_drawingarea_cairo),
+                                       UtilGtk.WidgetHeight(encoder_capture_curves_bars_drawingarea_cairo) );
 
                        LogB.Information("Saving");
                        pixbuf.Save(destination,"png");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]