mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:50:47 +00:00
Remove some extra parameters from debug outputs
OK Fred Kiefer git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
35fc83b8f2
commit
2341d42431
3 changed files with 22 additions and 16 deletions
|
@ -595,12 +595,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
_frame = frameRect; // Set frame rectangle
|
||||
|
@ -1178,12 +1178,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
|
||||
if (frameRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
frameRect.size.width = 0;
|
||||
}
|
||||
if (frameRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
frameRect.size.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1259,12 +1259,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
NSRect newFrame = _frame;
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
if (NSEqualSizes(_frame.size, newSize) == NO)
|
||||
|
@ -1385,12 +1385,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
NSDebugLLog(@"NSView", @"setBounds %@", NSStringFromRect(aRect));
|
||||
if (aRect.size.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
aRect.size.width = 0;
|
||||
}
|
||||
if (aRect.size.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
aRect.size.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1479,12 +1479,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
|
||||
|
@ -1570,12 +1570,12 @@ static NSSize _computeScale(NSSize fs, NSSize bs)
|
|||
{
|
||||
if (newSize.width < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative width", 0);
|
||||
NSWarnMLog(@"given negative width");
|
||||
newSize.width = 0;
|
||||
}
|
||||
if (newSize.height < 0)
|
||||
{
|
||||
NSWarnMLog(@"given negative height", 0);
|
||||
NSWarnMLog(@"given negative height");
|
||||
newSize.height = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue