[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) 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
|
* 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
|
* 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;
|
break;
|
||||||
}
|
}
|
||||||
// Fall through to center "justified" images
|
// Fall through to center "justified" images
|
||||||
|
/* fallthrough */
|
||||||
case ALIGN_CENTER:
|
case ALIGN_CENTER:
|
||||||
x += (metrics.FullWidth - style.textStyle()->lineEndIndent(metrics, isRtl()) - info.Width) / 2;
|
x += (metrics.FullWidth - style.textStyle()->lineEndIndent(metrics, isRtl()) - info.Width) / 2;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue