summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GipfelWidget.cxx1
-rw-r--r--src/Stitch.cxx1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 9dadba1..c851e65 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -32,6 +32,7 @@
static double pi_d, deg2rad;
GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Group(X, Y, W, H) {
+ end();
pi_d = asin(1.0) * 2.0;
deg2rad = pi_d / 180.0;
img = NULL;
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index b127de4..e69a28e 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -43,7 +43,6 @@ Stitch::load_image(char *file) {
for (int i=0; i<MAX_PICS; i++) {
if (gipf[i] == NULL) {
gipf[i] = new GipfelWidget(0, 0, 800, 600);
- gipf[i]->end();
if (gipf[i]->load_image(file) != 0) {
delete gipf[i];
gipf[i] = NULL;