Skip to content

Commit

Permalink
Merge pull request #18172 from esq4/_style_dialogs
Browse files Browse the repository at this point in the history
Style dialogs
  • Loading branch information
TurboGit authored Jan 21, 2025
2 parents 3256732 + f1df844 commit 1dd26db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/history.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ GList *dt_history_get_items(const dt_imgid_t imgid,
" FROM main.history"
" WHERE imgid=?1"
" AND enabled in (1, ?2)"
" GROUP BY num, operation, multi_priority"
" GROUP BY operation || multi_name, multi_priority"
" ORDER BY %s DESC, %s DESC",
multi_priority_order ? "multi_priority" : "num",
multi_priority_order ? "num" : "multi_priority");
Expand Down
6 changes: 3 additions & 3 deletions src/common/styles.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,9 +1101,9 @@ GList *dt_styles_get_item_list(const char *name,
" multi_name, FALSE, blendop_version"
" FROM main.history"
" WHERE imgid=?2 AND main.history.enabled=1"
" AND (main.history.operation"
" NOT IN (SELECT operation FROM data.style_items WHERE styleid=?1))"
" GROUP BY operation HAVING MAX(num) ORDER BY num DESC", -1, &stmt, NULL);
" AND (main.history.operation || multi_name"
" NOT IN (SELECT operation || multi_name FROM data.style_items WHERE styleid=?1))"
" GROUP BY (operation || multi_name) HAVING MAX(num) ORDER BY num DESC", -1, &stmt, NULL);
// clang-format on
DT_DEBUG_SQLITE3_BIND_INT(stmt, 2, imgid);
}
Expand Down

0 comments on commit 1dd26db

Please sign in to comment.