Commit 36713be0 authored by claes's avatar claes

Con wasn't draw when created

parent 1c6ec641
/* /*
* Proview $Id: glow_con.cpp,v 1.7 2007-01-04 07:57:38 claes Exp $ * Proview $Id: glow_con.cpp,v 1.8 2007-07-05 07:24:19 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -148,6 +148,7 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class, ...@@ -148,6 +148,7 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class,
GlowArrow *arrow; GlowArrow *arrow;
int i; int i;
int sts; int sts;
bool created = false;
if ( !cc) if ( !cc)
return; return;
...@@ -277,6 +278,7 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class, ...@@ -277,6 +278,7 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class,
} }
else else
{ {
created = true;
sts = con_route( src_x, src_y, source_direction, dest_x, dest_y, sts = con_route( src_x, src_y, source_direction, dest_x, dest_y,
dest_direction); dest_direction);
if ( EVEN(sts) && sts != 0) if ( EVEN(sts) && sts != 0)
...@@ -382,6 +384,8 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class, ...@@ -382,6 +384,8 @@ GlowCon::GlowCon( GrowCtx *glow_ctx, char *name, GlowConClass *con_class,
strcpy( c_name, name); strcpy( c_name, name);
get_con_borders(); get_con_borders();
if ( created)
draw();
con_modified(); con_modified();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment