Fixes ornament icon not correctly rendered
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user