[fbreader] Use magic /* fallthrough */ comment to silence gcc warning
This commit is contained in:
parent
19c28e5c51
commit
09c5f99e11
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
|
||||
* Copyright (C) 2015-2020 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* 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;
|
||||
|
|
Loading…
Reference in a new issue