Apache OpenOffice (AOO) Bugzilla – Issue 96099
svx: dodgy double assignment
Last modified: 2010-01-23 12:47:37 UTC
const bool bCompletelyTransparent(0xff == nStartLuminance == nEndLuminance); will bind as const bool bCompletelyTransparent((0xff == nStartLuminance) == nEndLuminance); giving either const bool bCompletelyTransparent(true == nEndLuminance); or const bool bCompletelyTransparent(false == nEndLuminance); The attachment does what we probably want, i.e. return true if both nStart and nEnd are the same value of 0xff
Created attachment 57877 [details] probable intention
verifying patch
retargeted to 3.2
fixed
*** Issue 104620 has been marked as a duplicate of this issue. ***
AW->KA: Thanks for taking care of this (saw it looking at #i104620#). Intended is: bCompletelyTransparent((0xff == nStartLuminance) && (0xff == nEndLuminance)) Just to make sure You replaced correctly...
verified
closing