summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-04-17 11:03:24 +0300
committerAleks Kissinger <aleks0@gmail.com>2018-04-17 11:03:24 +0300
commit8ac7248513189d82fe5bdf90c0d7fc15f2e718ce (patch)
treea537036afd281726cad73b1622935d3084c68f15 /src/main.cpp
parent34b60b77d3f9830ddb6a0107bd65aa3c79701305 (diff)
fixed bounding box bug
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b15840d..3532888 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -20,5 +20,10 @@ int main(int argc, char *argv[])
a.setQuitOnLastWindowClosed(false);
tikzit = new Tikzit();
tikzit->init(&a);
+
+ if (a.arguments().length() > 1) {
+ tikzit->open(a.arguments()[1]);
+ }
+
return a.exec();
}