From 09c5f99e1192f2785d3d6e3fb2bd3655d48e689a Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 20 Sep 2020 05:10:14 +0300 Subject: [PATCH] [fbreader] Use magic /* fallthrough */ comment to silence gcc warning --- .../zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp index 4a55bbb..8f3cd5c 100644 --- a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp +++ b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2004-2010 Geometer Plus + * Copyright (C) 2015-2020 Slava Monich * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -115,6 +116,7 @@ void ZLTextArea::prepareTextLine(Style &style, const ZLTextLineInfo &info, int y break; } // Fall through to center "justified" images + /* fallthrough */ case ALIGN_CENTER: x += (metrics.FullWidth - style.textStyle()->lineEndIndent(metrics, isRtl()) - info.Width) / 2; break;