Commit 958f7a24 authored by claes's avatar claes

Bugfix in rounded rect without fill, wrote to menu shapes

parent 24cbfe5b
/*
* Proview $Id: glow_exportjbean.cpp,v 1.17 2007-09-19 15:07:11 claes Exp $
* Proview $Id: glow_exportjbean.cpp,v 1.18 2007-12-21 13:20:31 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -791,6 +791,7 @@ void GlowExportJBean::rectrounded( double x0, double y0, double width, double he
else
((GrowCtx *)ctx)->measure_javabean( &dim_x1, &dim_x0, &dim_y1, &dim_y0);
if ( fill) {
fp <<
" new RoundRectangle2D.Float(" << x0 - dim_x0 + glow_cJBean_Offset << "F, " <<
y0 - dim_y0 + glow_cJBean_Offset << "F, " <<
......@@ -848,12 +849,14 @@ void GlowExportJBean::rectrounded( double x0, double y0, double width, double he
y0 - dim_y0 + glow_cJBean_Offset + shadow_width << "F, " <<
width - 2*shadow_width << "F, " << height - 2*shadow_width << "F)," << endl;
}
}
}
if ( border)
fp <<
" new RoundRectangle2D.Float(" << x0 - dim_x0 + glow_cJBean_Offset << "F, " <<
y0 - dim_y0 + glow_cJBean_Offset << "F, " <<
width << "F, " << height << "F, " << 2*roundamount << "F, " << 2*roundamount << "F)," << endl;
}
break;
}
case glow_eExportPass_Init:
......@@ -948,7 +951,7 @@ void GlowExportJBean::rectrounded( double x0, double y0, double width, double he
fp <<
" }" << endl;
}
if (border)
if ( border)
{
if ( shadow_width == 0)
(*shape_cnt)--;
......
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