X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fcontrolpanel.cpp;h=daa4b2105d81fbc040be1ecf2beb4d4381b5e22e;hb=748d002a813bbe6309dd22259bdce3278c02b0c8;hp=f27bc7a03f1bfc452434e42158eded951089e96b;hpb=6ce000e7212d9f5db6e5998c41df15bcad2022c8;p=ipdf%2Fcode.git 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);