err…, ok


if ( nSlotId != SID_OBJECT_SELECT &&
(/* bTempRotation && */ nMarkCount==0) ||
( mpView->GetDragMode() == SDRDRAG_CROOK &&
!mpView->IsCrookAllowed( mpView->IsCrookNoContortion() ) ) ||
( mpView->GetDragMode() == SDRDRAG_SHEAR &&
!mpView->IsShearAllowed() && !mpView->IsDistortAllowed() ) ||
( nSlotId==SID_CONVERT_TO_3D_LATHE && pSingleObj &&
(pSingleObj->GetObjInventor() != SdrInventor ||
pSingleObj->GetObjIdentifier() == OBJ_MEASURE) ) )

3 Responses to “err…, ok”

  1. Can you show us where you are finding this horribly wonderful code from?

  2. LOL

    people don’t use state machines often enough

  3. Kae Verens says:

    fantastic!

    I know there are “rules” about how many lines of code you should have in a function before it’s considered bloated, but is there an equivalent for the parts of conditionals?

Leave a Reply