mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: pass printFontScale on creation of the profile
Not having to readjust the scale on-demand will make the code distinctly simpler. Let's just pass it once. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5df0efbc7f
commit
a14f740df0
7 changed files with 15 additions and 23 deletions
|
@ -52,9 +52,8 @@ static void exportProfile(ProfileWidget2 *profile, const struct dive *dive, cons
|
|||
|
||||
static std::unique_ptr<ProfileWidget2> getPrintProfile()
|
||||
{
|
||||
auto profile = std::make_unique<ProfileWidget2>(nullptr, nullptr);
|
||||
auto profile = std::make_unique<ProfileWidget2>(nullptr, (double)profileScale, nullptr);
|
||||
profile->setPrintMode(true);
|
||||
profile->setFontPrintScale((double)profileScale);
|
||||
return profile;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue