Fixes ornament icon not correctly rendered

This commit is contained in:
Pandagrapher
2022-12-13 19:26:25 +01:00
parent 41a0bef2d8
commit 1a4de65f46
7 changed files with 16 additions and 7 deletions

View File

@@ -21,13 +21,14 @@
#include "multilangmgr.h"
#include "options.h"
#include "rtimage.h"
#include "rtsurface.h"
#include "../rtengine/procparams.h"
using namespace rtengine;
using namespace rtengine::procparams;
ExportPanel::ExportPanel () : listener (nullptr)
ExportPanel::ExportPanel () : listener (nullptr), ornamentSurface(new RTSurface("ornament1.svg"))
{
set_orientation(Gtk::ORIENTATION_VERTICAL);
@@ -192,7 +193,7 @@ ExportPanel::ExportPanel () : listener (nullptr)
// add panel ending
Gtk::Box* vboxpe = Gtk::manage (new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
Gtk::Separator* hseptpe = Gtk::manage (new Gtk::Separator(Gtk::ORIENTATION_HORIZONTAL));
Gtk::Image* peImg = Gtk::manage (new RTImage ("ornament1"));
Gtk::Image* peImg = Gtk::manage (new Gtk::Image (ornamentSurface->get()));
vboxpe->pack_start (*hseptpe, Gtk::PACK_SHRINK, 4);
vboxpe->pack_start (*peImg);
pack_start (*vboxpe, Gtk::PACK_SHRINK, 0);