|
From: <dhu...@us...> - 2007-01-25 15:52:46
|
Revision: 257
http://svn.sourceforge.net/qcell/?rev=257&view=rev
Author: dhubleizh
Date: 2007-01-25 07:52:38 -0800 (Thu, 25 Jan 2007)
Log Message:
-----------
- gcc compilation bug resolved (proper cast)
Modified Paths:
--------------
trunk/qcell/visgui/MainWindow.cpp
Modified: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp 2007-01-25 15:48:29 UTC (rev 256)
+++ trunk/qcell/visgui/MainWindow.cpp 2007-01-25 15:52:38 UTC (rev 257)
@@ -1227,7 +1227,8 @@
// Setup Neighbourhood editor
//***************************************************
- *(sw->getNeighbourhoodEditor()->getStorage()) = neighbourhood->toCalculationData();
+ // This really needs to be so complicated to compile on gcc 4.2
+ *sw->getNeighbourhoodEditor()->getStorage() = *((CalculationData*)&neighbourhood->toCalculationData());
sw->getNeighbourhoodEditor()->setTranslation(0.0f, 0.0f, -10.0f);
sw->getNeighbourhoodEditor()->setSymbolColor(1, QColor(128, 128, 128));
nStartPos = neighbourhood->getMinNeighbourhoodValues();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|