PrusaSlicer-NonPlainar/xs
bubnikv bd23fe9c44 Fixed a crash in a constructor of FullPrintConfig due to an incorrect use
of virtual inheritance. Note that an invocation of ConfigBase::optptr()
is routed to FullPrintConfig::optptr() for all classes of the FullPrintConfig
hierarchy. FullPrintConfig::optptr() in turn invokes optptr()
of PrintObjectConfig, PrintRegionConfig, PrintConfig and HostConfig.
Due to the use of virtual inheritance, this all happens, when
PrintObjectConfig gets constructed as part of FullPrintConfig, but
at that time PrintRegionConfig, PrintConfig and HostConfig are not
constructed yet. Accessing them at that time leads to crashes,
when compiled with Visual Studio 2013 compiler. For some reason
the code generated by gcc does not crash, but I believe the behavior
is undefined and it is better to be fixed anyway.

The patch solves the problem by calling set_defaults() by the topmost
object, which not only fixes the crashes, but also avoids repeated
initialization.
2016-08-21 19:09:31 +02:00
..
lib/Slic3r
src Fixed a crash in a constructor of FullPrintConfig due to an incorrect use 2016-08-21 19:09:31 +02:00
t Fixed type error 2016-03-26 12:21:54 +01:00
xsp More refactoring to medial axis and gap fill, more robust 2016-05-20 17:03:57 +02:00
Build.PL Support static linking of the Boost libs 2016-04-11 22:14:12 +02:00
MANIFEST
MANIFEST.SKIP