Fix XIB 5 clip view flag decoding

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2017-01-26 16:31:51 +00:00
parent f0d038ef6c
commit b84a89a58f

View file

@ -1724,15 +1724,15 @@ didStartElement: (NSString*)elementName
// copiesOnScroll - defaults to ON...
if ([attributes objectForKey: @"copiesOnScroll"] == nil)
mask |= (1 << 2);
mask |= (1 << 1);
else
mask |= ([[attributes objectForKey: @"copiesOnScroll"] boolValue] ? (1 << 2) : 0);
mask |= ([[attributes objectForKey: @"copiesOnScroll"] boolValue] ? (1 << 1) : 0);
// drawsBackground - defaults to ON...
if ([attributes objectForKey: @"drawsBackground"] == nil)
mask |= (1 << 4);
mask |= (1 << 2);
else
mask |= ([[attributes objectForKey: @"drawsBackground"] boolValue] ? (1 << 4) : 0);
mask |= ([[attributes objectForKey: @"drawsBackground"] boolValue] ? (1 << 2) : 0);
// Return value...