13378-Patch.diff (2,211 bytes)
diff --git a/scribus/ui/gradienteditor.ui b/scribus/ui/gradienteditor.ui
--- a/scribus/ui/gradienteditor.ui
+++ b/scribus/ui/gradienteditor.ui
@@ -58,7 +58,7 @@
</widget>
</item>
<item row="1" column="0">
- <widget class="QLabel" name="Desc">
+ <widget class="QLabel" name="stopPosLabel">
<property name="text">
<string>Position:</string>
</property>
@@ -75,7 +75,7 @@
</widget>
</item>
<item row="2" column="0">
- <widget class="QLabel" name="label">
+ <widget class="QLabel" name="stopColorLabel">
<property name="text">
<string>Color:</string>
</property>
@@ -85,7 +85,7 @@
<widget class="ColorCombo" name="stopColor"/>
</item>
<item row="3" column="0">
- <widget class="QLabel" name="label_2">
+ <widget class="QLabel" name="stopOpacityLabel">
<property name="text">
<string>Opacity:</string>
</property>
@@ -108,7 +108,7 @@
</widget>
</item>
<item row="4" column="0">
- <widget class="QLabel" name="label_3">
+ <widget class="QLabel" name="stopShadeLabel">
<property name="text">
<string>Shade:</string>
</property>
diff --git a/scribus/ui/gradienteditor.cpp b/scribus/ui/gradienteditor.cpp
--- a/scribus/ui/gradienteditor.cpp
+++ b/scribus/ui/gradienteditor.cpp
@@ -171,8 +171,11 @@
void GradientEditor::languageChange()
{
- Desc->setText( tr( "Position:" ) );
- stopPos->setSuffix( tr(" %") );
+ stopPosLabel->setText( tr( "Position:" ));
+ stopPos->setSuffix( tr(" %"));
+ stopColorLabel->setText( tr("Color:"));
+ stopOpacityLabel->setText( tr("Opacity:"));
+ stopShadeLabel->setText( tr("Shade:"));
}
bool GradientEditor::event(QEvent * event)
diff --git a/scribus/ui/propertiespalette_line.cpp b/scribus/ui/propertiespalette_line.cpp
--- a/scribus/ui/propertiespalette_line.cpp
+++ b/scribus/ui/propertiespalette_line.cpp
@@ -649,7 +649,7 @@
lineType->updateList();
lineType->addItem( tr("Custom"));
lineType->setCurrentIndex(oldLineStyle);
- int oldLineMode=lineMode->currentIndex();
+ int oldLineMode = lineMode->currentIndex();
lineMode->clear();
lineMode->addItem( tr("Left Point"));
lineMode->addItem( tr("End Points"));