summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-07 18:47:41 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-07 18:47:41 +0100
commita0c541f8245a58ee5cc5192e419d98a942ecdfb9 (patch)
treef18aabe972ca2a9f9307716289d1108f789263aa /src
parentec30dd0c55012c656b3ff419b4b098519955ad9a (diff)
move fix for Stitch problem to GipfelWidget constructor
Diffstat (limited to 'src')
-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;