mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:51:02 +00:00
Improved warning logging by using NSWarn... macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
540f6db829
commit
677a745590
2 changed files with 17 additions and 12 deletions
|
@ -195,12 +195,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
frame = frameRect; // Set frame rectangle
|
||||
|
@ -556,12 +556,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
if (coordinates_valid)
|
||||
|
@ -596,12 +596,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
newSize.height = 0;
|
||||
}
|
||||
if (coordinates_valid)
|
||||
|
@ -655,12 +655,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
newSize.height = 0;
|
||||
}
|
||||
if (coordinates_valid)
|
||||
|
@ -709,12 +709,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (aRect.size.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
aRect.size.width = 0;
|
||||
}
|
||||
if (aRect.size.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
aRect.size.height = 0;
|
||||
}
|
||||
if (coordinates_valid)
|
||||
|
@ -778,12 +778,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSView", @"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
newSize.height = 0;
|
||||
}
|
||||
if (coordinates_valid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue