From b1b026397c58c45c46ca7a525fb1e98b20ddfab8 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Sat, 21 Oct 2017 11:57:45 -0200 Subject: Several changes and bugfixes to compile the program on linux (ubuntu-xenial-amb64) --- Project/Element.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Project/Element.cpp') diff --git a/Project/Element.cpp b/Project/Element.cpp index 27bcfb5..6c2cbe9 100644 --- a/Project/Element.cpp +++ b/Project/Element.cpp @@ -248,15 +248,15 @@ void Element::GeneralMenuItens(wxMenu& menu) wxString exePath = exeFileName.GetPath(); wxMenuItem* clockItem = new wxMenuItem(&menu, ID_ROTATE_CLOCK, _("Rotate clockwise")); - clockItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\rotateClock16.png")); + clockItem->SetBitmap(wxImage(exePath + wxFileName::DirName("\\..\\data\\images\\menu\\rotateClock16.png", wxPATH_WIN).GetPath())); menu.Append(clockItem); wxMenuItem* counterClockItem = new wxMenuItem(&menu, ID_ROTATE_COUNTERCLOCK, _("Rotate counter-clockwise")); - counterClockItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\rotateCounterClock16.png")); + counterClockItem->SetBitmap(wxImage(exePath + wxFileName::DirName("\\..\\data\\images\\menu\\rotateCounterClock16.png", wxPATH_WIN).GetPath())); menu.Append(counterClockItem); wxMenuItem* deleteItem = new wxMenuItem(&menu, ID_DELETE, _("Delete")); - deleteItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\delete16.png")); + deleteItem->SetBitmap(wxImage(exePath + wxFileName::DirName("\\..\\data\\images\\menu\\delete16.png", wxPATH_WIN).GetPath())); menu.Append(deleteItem); } -- cgit