Negative scaling

does anybody know a (heuristic) method to decide if a scaling is negative ? see patch for details.

was me …