Show
Ignore:
Timestamp:
03/21/12 18:36:20 (2 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWidget/Input.cpp

    r12292 r13041  
    104104   _widths.resize(_text->getText().size()+1, 1.0f); 
    105105 
    106     if (_text->getText().size()==0)  
     106    if (_text->getText().size()==0) 
    107107    { 
    108108        _offsets[0] = 0; 
     
    129129        } 
    130130    } 
    131      
     131 
    132132    std::list<unsigned int> keys; 
    133133    for (unsigned int i=0; i<_text->getText().size(); ++i) 
     
    249249        else 
    250250        { 
    251             // We're at the end of the string, perhaps the string is empty,  
     251            // We're at the end of the string, perhaps the string is empty, 
    252252            // so get the advance for any character, perhaps a large one, I chose 'A'. 
    253253            osgText::Glyph* glyph = const_cast<osgText::Font*>(_text->getFont())->getGlyph(osgText::FontResolution(_text->getFontWidth(), _text->getFontHeight()), 'A'); 
     
    298298            i == _offsets.size() - 1)  // If we're at the last one, obviously it will be there. 
    299299        { 
    300             _selectionEndIndex = _index = i;  
     300            _selectionEndIndex = _index = i; 
    301301            positioned(); 
    302302            break; 
     
    311311    double offset = getOrigin().x(); 
    312312    Window* window = getParent(); 
    313     if (window)  
    314     {  
    315         offset += window->getOrigin().x();  
     313    if (window) 
     314    { 
     315        offset += window->getOrigin().x(); 
    316316    } 
    317317 
     
    326326            i == _offsets.size() - 1)  // If we're at the last one, obviously it will be there. 
    327327        { 
    328             _selectionStartIndex = _selectionEndIndex = _index = i;  
     328            _selectionStartIndex = _selectionEndIndex = _index = i; 
    329329            positioned(); 
    330330            break;