mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Use a particulaly unpleasant cast to get a void * into an enumeration type.
This commit is contained in:
parent
dcbef994e0
commit
7795c597af
1 changed files with 4 additions and 0 deletions
|
@ -671,7 +671,11 @@ DmxPrintOptions::isValidMarginSpec(PropUiItem* pui, void* data)
|
|||
char *marginSpec = NULL;
|
||||
XtEnum parseError;
|
||||
Widget text;
|
||||
#if defined(linux)
|
||||
_DtPrintMarginEnum which = *((_DtPrintMarginEnum *) data);
|
||||
#else
|
||||
_DtPrintMarginEnum which = (_DtPrintMarginEnum) data;
|
||||
#endif
|
||||
|
||||
text = pui->getWidget();
|
||||
if (text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue