Ticket #9293: 0008-Fixed-a-bit-of-code-duplication.patch

File 0008-Fixed-a-bit-of-code-duplication.patch, 962 bytes (added by Ziusudra, 11 years ago)
  • src/apps/terminal/TermView.cpp

    From 62161410a0a5a88ba79c469a47c586394bb85f3b Mon Sep 17 00:00:00 2001
    From: Ziusudra <ziusudra@gmail.com>
    Date: Sun, 16 Dec 2012 16:01:50 -0700
    Subject: [PATCH 8/9] Fixed a bit of code duplication
    
    ---
     src/apps/terminal/TermView.cpp |    5 +----
     1 file changed, 1 insertion(+), 4 deletions(-)
    
    diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp
    index e087546..c71b160 100644
    a b TermView::AttachedToWindow()  
    13241324    // update the terminal size because it may have changed while the TermView
    13251325    // was detached from the window. On such conditions FrameResized was not
    13261326    // called when the resize occured
    1327     int rows;
    1328     int columns;
    1329     GetTermSizeFromRect(Bounds(), &rows, &columns);
    1330     SetTermSize(rows, columns);
     1327    SetTermSize(Bounds());
    13311328    MakeFocus(true);
    13321329    if (fScrollBar) {
    13331330        fScrollBar->SetSteps(fFontHeight, fFontHeight * fRows);