X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fmain.cpp;h=e556fe494ad1b180f49bf5e95e005161438ab652;hb=6b7e92069596a3f19fbe068b14a9c5ef59c22061;hp=e20a7bfaf02e78db30dc47d171410f911f4d5a6a;hpb=35bc799125eec0d0c839af56fd136c8e85793a56;p=ipdf%2Fcode.git diff --git a/src/main.cpp b/src/main.cpp index e20a7bf..e556fe4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -184,10 +184,7 @@ int main(int argc, char ** argv) { doc.AddText(input_text, bounds.h/Real(2), bounds.x, bounds.y+bounds.h/Real(2)); } - else - { - doc.Add(RECT_OUTLINE, Rect(0,0,0,0),0); // hack to stop segfault if document is empty (:S) - } + #ifndef CONTROLPANEL_DISABLED