mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:30:47 +00:00
tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2bd0b411e
commit
e954a93ff3
4 changed files with 30 additions and 38 deletions
|
@ -597,8 +597,7 @@ typedef struct {
|
|||
int pos;
|
||||
int end;
|
||||
|
||||
NSAssert(elementState <= GSThemeSelectedState, NSInvalidArgumentException);
|
||||
if (elementState < 0)
|
||||
if (elementState < 0 || elementState > GSThemeSelectedState)
|
||||
{
|
||||
pos = 0;
|
||||
end = GSThemeSelectedState;
|
||||
|
@ -1177,8 +1176,7 @@ typedef struct {
|
|||
int pos;
|
||||
int end;
|
||||
|
||||
NSAssert(elementState <= GSThemeSelectedState, NSInvalidArgumentException);
|
||||
if (elementState < 0)
|
||||
if (elementState < 0 || elementState > GSThemeSelectedState)
|
||||
{
|
||||
pos = 0;
|
||||
end = GSThemeSelectedState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue