X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fcontrolpanel.cpp;h=daa4b2105d81fbc040be1ecf2beb4d4381b5e22e;hp=f27bc7a03f1bfc452434e42158eded951089e96b;hb=58a6719da2337b3e6e20b581885f170bbe5fc480;hpb=6ce000e7212d9f5db6e5998c41df15bcad2022c8 diff --git a/src/controlpanel.cpp b/src/controlpanel.cpp index f27bc7a..daa4b21 100644 --- a/src/controlpanel.cpp +++ b/src/controlpanel.cpp @@ -336,7 +336,11 @@ void ControlPanel::LoadSVGIntoDocument() if (filename == "") return; + #ifdef TRANSFORM_OBJECTS_NOT_VIEW + Rect bounds(0,0,1,1); + #else Rect bounds(m_view.GetBounds()); + #endif bounds.x += bounds.w/Real(2); bounds.y += bounds.h/Real(2);