Ticket #12756: 0010-PicturePrinter.cpp-fix-gcc6-build.patch

File 0010-PicturePrinter.cpp-fix-gcc6-build.patch, 839 bytes (added by mt, 3 years ago)
  • src/kits/print/PicturePrinter.cpp

    From a46bcc0f110a0baa0919eb648af701b5c145d31a Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 16:47:02 +0900
    Subject: [PATCH 10/24] PicturePrinter.cpp: fix gcc6 build
    
    ---
     src/kits/print/PicturePrinter.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/print/PicturePrinter.cpp b/src/kits/print/PicturePrinter.cpp
    index 5f7a253..6cbdf75 100644
    a b void PicturePrinter::DrawPixels(BRect src, BRect dest, int32 width, int32 height  
    202202
    203203void PicturePrinter::SetClippingRects(BRect *rects, uint32 numRects) {
    204204    Indent(); Print("SetClippingRects");
    205     if (numRects == 0) Print("none"); Cr();
     205    if (numRects == 0) {Print("none");} Cr();
    206206    Print(numRects, rects);
    207207}
    208208