几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】bug in exgigdigeometry (http://www.dimcax.com/hust/showthread.php?t=15280)

yang686526 2009-05-04 05:03 PM

【转帖】bug in exgigdigeometry
 
bug in exgigdigeometry
bug in exgigdigeometry
around line 1774 this code appears --
code:
if(m_logbrush.lbstyle & bs_pattern)
::deleteobject((hbitmap)m_logbrush.lbhatch); // delete old bitmap
i believe it should be ==, as the lbstyle member is not a bitmask. see wingdi.h:
code:
/* brush styles */
#define bs_solid 0
#define bs_null 1
#define bs_hollow bs_null
#define bs_hatched 2
#define bs_pattern 3
#define bs_indexed 4
#define bs_dibpattern 5
#define bs_dibpatternpt 6
#define bs_pattern8x8 7
#define bs_dibpattern8x8 8
#define bs_monopattern 9
thanks, we'll change our code accordingly.


所有的时间均为北京时间。 现在的时间是 11:35 AM.