DiffEditor: Use DiffSide enum inside ChunkSelection

Change-Id: If23b0f46856eebec96624e58b6ad90b1b3e8be23
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-26 15:08:59 +02:00
parent a1c4d563a1
commit 6dc412e255
3 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ namespace DiffEditor {
int ChunkSelection::selectedRowsCount() const
{
return Utils::toSet(leftSelection).unite(Utils::toSet(rightSelection)).size();
return Utils::toSet(selection[LeftSide]).unite(Utils::toSet(selection[RightSide])).size();
}
static QList<TextLineData> assemblyRows(const QList<TextLineData> &lines,