mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
find/replace kind of working
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@299 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -68,7 +68,8 @@ Rotation DataViewer::getRotation() const {
|
||||
// ----------------------------------------------------------------------------- : Setting data
|
||||
|
||||
void DataViewer::setCard(const CardP& card) {
|
||||
if (!card) return; // TODO: clear vie?
|
||||
if (!card) return; // TODO: clear viewer?
|
||||
if (this->card == card) return; // already set
|
||||
assert(set);
|
||||
this->card = card;
|
||||
stylesheet = set->stylesheetFor(card);
|
||||
|
||||
@@ -317,7 +317,7 @@ void TextViewer::prepareLines(RotatedDC& dc, const String& text, const TextStyle
|
||||
vector<CharInfo> chars;
|
||||
scale = 1;
|
||||
double min_scale = elements.minScale();
|
||||
double scale_step = max(0.1,elements.scaleStep());
|
||||
double scale_step = max(0.05,elements.scaleStep());
|
||||
while (true) {
|
||||
double next_scale = scale - scale_step;
|
||||
bool last = next_scale < min_scale;
|
||||
|
||||
Reference in New Issue
Block a user